diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2012-08-23 15:40:54 -0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2012-09-03 22:20:49 -0400 |
commit | 15eac2a74277bc7de68a7c2a64a7c91b4b6f5961 (patch) | |
tree | cbe59331108927c14a1930a6303ffbb2b303b9a7 /net/openvswitch/vport.h | |
parent | 46df7b814548849deee01f50bc75f8f5ae8cd767 (diff) |
openvswitch: Increase maximum number of datapath ports.
Use hash table to store ports of datapath. Allow 64K ports per switch.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/vport.h')
-rw-r--r-- | net/openvswitch/vport.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/vport.h b/net/openvswitch/vport.h index 97cef08d981b..c56e4836e93b 100644 --- a/net/openvswitch/vport.h +++ b/net/openvswitch/vport.h | |||
@@ -70,10 +70,10 @@ struct vport_err_stats { | |||
70 | * @rcu: RCU callback head for deferred destruction. | 70 | * @rcu: RCU callback head for deferred destruction. |
71 | * @port_no: Index into @dp's @ports array. | 71 | * @port_no: Index into @dp's @ports array. |
72 | * @dp: Datapath to which this port belongs. | 72 | * @dp: Datapath to which this port belongs. |
73 | * @node: Element in @dp's @port_list. | ||
74 | * @upcall_pid: 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 |
75 | * miss the flow table. | 74 | * miss the flow table. |
76 | * @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. | ||
77 | * @ops: Class structure. | 77 | * @ops: Class structure. |
78 | * @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 |
79 | * @stats_lock: Protects @err_stats; | 79 | * @stats_lock: Protects @err_stats; |
@@ -83,10 +83,10 @@ struct vport { | |||
83 | struct rcu_head rcu; | 83 | struct rcu_head rcu; |
84 | u16 port_no; | 84 | u16 port_no; |
85 | struct datapath *dp; | 85 | struct datapath *dp; |
86 | struct list_head node; | ||
87 | u32 upcall_pid; | 86 | u32 upcall_pid; |
88 | 87 | ||
89 | struct hlist_node hash_node; | 88 | struct hlist_node hash_node; |
89 | struct hlist_node dp_hash_node; | ||
90 | const struct vport_ops *ops; | 90 | const struct vport_ops *ops; |
91 | 91 | ||
92 | struct vport_percpu_stats __percpu *percpu_stats; | 92 | struct vport_percpu_stats __percpu *percpu_stats; |