diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-07-21 04:44:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-21 13:39:07 -0400 |
commit | be4ace6e6b1bc12e18b25fe764917e09a1f96d7b (patch) | |
tree | 6b4ae588041d0245a5f1b2fe47118db445c3886f /net/openvswitch/vport-netdev.h | |
parent | 34ae932a40369be6bd6ea97d66b6686361b4370d (diff) |
openvswitch: Move dev pointer into vport itself
This is the first step in representing all OVS vports as regular
struct net_devices. Move the net_device pointer into the vport
structure itself to get rid of struct vport_netdev.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/vport-netdev.h')
-rw-r--r-- | net/openvswitch/vport-netdev.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/openvswitch/vport-netdev.h b/net/openvswitch/vport-netdev.h index 6f7038e79c52..1c52aed255c5 100644 --- a/net/openvswitch/vport-netdev.h +++ b/net/openvswitch/vport-netdev.h | |||
@@ -26,18 +26,6 @@ | |||
26 | 26 | ||
27 | struct vport *ovs_netdev_get_vport(struct net_device *dev); | 27 | struct vport *ovs_netdev_get_vport(struct net_device *dev); |
28 | 28 | ||
29 | struct netdev_vport { | ||
30 | struct rcu_head rcu; | ||
31 | |||
32 | struct net_device *dev; | ||
33 | }; | ||
34 | |||
35 | static inline struct netdev_vport * | ||
36 | netdev_vport_priv(const struct vport *vport) | ||
37 | { | ||
38 | return vport_priv(vport); | ||
39 | } | ||
40 | |||
41 | const char *ovs_netdev_get_name(const struct vport *); | 29 | const char *ovs_netdev_get_name(const struct vport *); |
42 | void ovs_netdev_detach_dev(struct vport *); | 30 | void ovs_netdev_detach_dev(struct vport *); |
43 | 31 | ||