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>
This commit is contained in:
committed by
David S. Miller
parent
34ae932a40
commit
be4ace6e6b
@@ -107,7 +107,7 @@ struct vport_portids {
|
||||
* @detach_list: list used for detaching vport in net-exit call.
|
||||
*/
|
||||
struct vport {
|
||||
struct rcu_head rcu;
|
||||
struct net_device *dev;
|
||||
struct datapath *dp;
|
||||
struct vport_portids __rcu *upcall_portids;
|
||||
u16 port_no;
|
||||
@@ -120,6 +120,7 @@ struct vport {
|
||||
|
||||
struct vport_err_stats err_stats;
|
||||
struct list_head detach_list;
|
||||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user