]> git.proxmox.com Git - ovs.git/blame - datapath/vport-netdev.h
nx-match: Fold all of its data structures into mf_field.
[ovs.git] / datapath / vport-netdev.h
CommitLineData
f2459fe7 1/*
a9a29d22 2 * Copyright (c) 2007-2011 Nicira Networks.
f2459fe7 3 *
a9a29d22
JG
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 2 of the GNU General Public
6 * License as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 * 02110-1301, USA
f2459fe7
JG
17 */
18
19#ifndef VPORT_NETDEV_H
20#define VPORT_NETDEV_H 1
21
22#include <linux/netdevice.h>
23
24#include "vport.h"
25
26struct vport *netdev_get_vport(struct net_device *dev);
27
28struct netdev_vport {
29 struct net_device *dev;
30};
31
32static inline struct netdev_vport *
33netdev_vport_priv(const struct vport *vport)
34{
35 return vport_priv(vport);
36}
37
f2459fe7
JG
38int netdev_set_addr(struct vport *, const unsigned char *addr);
39const char *netdev_get_name(const struct vport *);
40const unsigned char *netdev_get_addr(const struct vport *);
dd851cbb 41const char *netdev_get_config(const struct vport *);
f2459fe7 42struct kobject *netdev_get_kobj(const struct vport *);
f2459fe7
JG
43unsigned netdev_get_dev_flags(const struct vport *);
44int netdev_is_running(const struct vport *);
45unsigned char netdev_get_operstate(const struct vport *);
46int netdev_get_ifindex(const struct vport *);
f2459fe7
JG
47int netdev_get_mtu(const struct vport *);
48
49#endif /* vport_netdev.h */