]>
git.proxmox.com Git - ovs.git/blob - datapath/vport-netdev.h
2 * Copyright (c) 2007-2011 Nicira, Inc.
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.
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.
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
19 #ifndef VPORT_NETDEV_H
20 #define VPORT_NETDEV_H 1
22 #include <linux/netdevice.h>
23 #include <linux/rcupdate.h>
27 struct vport
*ovs_netdev_get_vport(struct net_device
*dev
);
32 struct net_device
*dev
;
35 static inline struct netdev_vport
*
36 netdev_vport_priv(const struct vport
*vport
)
38 return vport_priv(vport
);
41 int ovs_netdev_set_addr(struct vport
*, const unsigned char *addr
);
42 const char *ovs_netdev_get_name(const struct vport
*);
43 const unsigned char *ovs_netdev_get_addr(const struct vport
*);
44 const char *ovs_netdev_get_config(const struct vport
*);
45 struct kobject
*ovs_netdev_get_kobj(const struct vport
*);
46 unsigned ovs_netdev_get_dev_flags(const struct vport
*);
47 int ovs_netdev_is_running(const struct vport
*);
48 unsigned char ovs_netdev_get_operstate(const struct vport
*);
49 int ovs_netdev_get_ifindex(const struct vport
*);
50 int ovs_netdev_get_mtu(const struct vport
*);
52 #endif /* vport_netdev.h */