diff options
Diffstat (limited to 'net/openvswitch/vport.h')
-rw-r--r-- | net/openvswitch/vport.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/openvswitch/vport.h b/net/openvswitch/vport.h index aac680ca2b06..3f7961ea3c56 100644 --- a/net/openvswitch/vport.h +++ b/net/openvswitch/vport.h | |||
@@ -20,6 +20,7 @@ | |||
20 | #define VPORT_H 1 | 20 | #define VPORT_H 1 |
21 | 21 | ||
22 | #include <linux/list.h> | 22 | #include <linux/list.h> |
23 | #include <linux/netlink.h> | ||
23 | #include <linux/openvswitch.h> | 24 | #include <linux/openvswitch.h> |
24 | #include <linux/skbuff.h> | 25 | #include <linux/skbuff.h> |
25 | #include <linux/spinlock.h> | 26 | #include <linux/spinlock.h> |
@@ -38,7 +39,7 @@ void ovs_vport_exit(void); | |||
38 | struct vport *ovs_vport_add(const struct vport_parms *); | 39 | struct vport *ovs_vport_add(const struct vport_parms *); |
39 | void ovs_vport_del(struct vport *); | 40 | void ovs_vport_del(struct vport *); |
40 | 41 | ||
41 | struct vport *ovs_vport_locate(const char *name); | 42 | struct vport *ovs_vport_locate(struct net *net, const char *name); |
42 | 43 | ||
43 | void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *); | 44 | void ovs_vport_get_stats(struct vport *, struct ovs_vport_stats *); |
44 | 45 | ||
@@ -69,10 +70,10 @@ struct vport_err_stats { | |||
69 | * @rcu: RCU callback head for deferred destruction. | 70 | * @rcu: RCU callback head for deferred destruction. |
70 | * @port_no: Index into @dp's @ports array. | 71 | * @port_no: Index into @dp's @ports array. |
71 | * @dp: Datapath to which this port belongs. | 72 | * @dp: Datapath to which this port belongs. |
72 | * @node: Element in @dp's @port_list. | 73 | * @upcall_portid: The Netlink port to use for packets received on this port that |
73 | * @upcall_pid: The Netlink port to use for packets received on this port that | ||
74 | * miss the flow table. | 74 | * miss the flow table. |
75 | * @hash_node: Element in @dev_table hash table in vport.c. | 75 | * @hash_node: Element in @dev_table hash table in vport.c. |
76 | * @dp_hash_node: Element in @datapath->ports hash table in datapath.c. | ||
76 | * @ops: Class structure. | 77 | * @ops: Class structure. |
77 | * @percpu_stats: Points to per-CPU statistics used and maintained by vport | 78 | * @percpu_stats: Points to per-CPU statistics used and maintained by vport |
78 | * @stats_lock: Protects @err_stats; | 79 | * @stats_lock: Protects @err_stats; |
@@ -82,10 +83,10 @@ struct vport { | |||
82 | struct rcu_head rcu; | 83 | struct rcu_head rcu; |
83 | u16 port_no; | 84 | u16 port_no; |
84 | struct datapath *dp; | 85 | struct datapath *dp; |
85 | struct list_head node; | 86 | u32 upcall_portid; |
86 | u32 upcall_pid; | ||
87 | 87 | ||
88 | struct hlist_node hash_node; | 88 | struct hlist_node hash_node; |
89 | struct hlist_node dp_hash_node; | ||
89 | const struct vport_ops *ops; | 90 | const struct vport_ops *ops; |
90 | 91 | ||
91 | struct vport_percpu_stats __percpu *percpu_stats; | 92 | struct vport_percpu_stats __percpu *percpu_stats; |
@@ -112,7 +113,7 @@ struct vport_parms { | |||
112 | /* For ovs_vport_alloc(). */ | 113 | /* For ovs_vport_alloc(). */ |
113 | struct datapath *dp; | 114 | struct datapath *dp; |
114 | u16 port_no; | 115 | u16 port_no; |
115 | u32 upcall_pid; | 116 | u32 upcall_portid; |
116 | }; | 117 | }; |
117 | 118 | ||
118 | /** | 119 | /** |