]>
git.proxmox.com Git - ovs.git/blob - datapath/vport-netdev.h
2 * Copyright (c) 2010 Nicira Networks.
3 * Distributed under the terms of the GNU GPL version 2.
5 * Significant portions of this file may be copied from parts of the Linux
6 * kernel, by Linus Torvalds and others.
10 #define VPORT_NETDEV_H 1
12 #include <linux/netdevice.h>
16 struct vport
*netdev_get_vport(struct net_device
*dev
);
19 struct net_device
*dev
;
22 static inline struct netdev_vport
*
23 netdev_vport_priv(const struct vport
*vport
)
25 return vport_priv(vport
);
28 int netdev_set_addr(struct vport
*, const unsigned char *addr
);
29 const char *netdev_get_name(const struct vport
*);
30 const unsigned char *netdev_get_addr(const struct vport
*);
31 const char *netdev_get_config(const struct vport
*);
32 struct kobject
*netdev_get_kobj(const struct vport
*);
33 int netdev_get_stats(const struct vport
*, struct rtnl_link_stats64
*);
34 unsigned netdev_get_dev_flags(const struct vport
*);
35 int netdev_is_running(const struct vport
*);
36 unsigned char netdev_get_operstate(const struct vport
*);
37 int netdev_get_ifindex(const struct vport
*);
38 int netdev_get_mtu(const struct vport
*);
40 #endif /* vport_netdev.h */