diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2012-08-23 21:40:54 +0200 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2012-09-04 04:20:49 +0200 |
commit | 15eac2a74277bc7de68a7c2a64a7c91b4b6f5961 (patch) | |
tree | cbe59331108927c14a1930a6303ffbb2b303b9a7 /net/openvswitch/actions.c | |
parent | openvswitch: Add support for network namespaces. (diff) | |
download | linux-15eac2a74277bc7de68a7c2a64a7c91b4b6f5961.tar.xz linux-15eac2a74277bc7de68a7c2a64a7c91b4b6f5961.zip |
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/actions.c')
-rw-r--r-- | net/openvswitch/actions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index f3f96badf5aa..0da687769f56 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c @@ -266,7 +266,7 @@ static int do_output(struct datapath *dp, struct sk_buff *skb, int out_port) if (unlikely(!skb)) return -ENOMEM; - vport = rcu_dereference(dp->ports[out_port]); + vport = ovs_vport_rcu(dp, out_port); if (unlikely(!vport)) { kfree_skb(skb); return -ENODEV; |