summaryrefslogtreecommitdiff
path: root/net/openvswitch/actions.c
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2012-08-23 19:40:54 (GMT)
committerJesse Gross <jesse@nicira.com>2012-09-04 02:20:49 (GMT)
commit15eac2a74277bc7de68a7c2a64a7c91b4b6f5961 (patch)
treecbe59331108927c14a1930a6303ffbb2b303b9a7 /net/openvswitch/actions.c
parent46df7b814548849deee01f50bc75f8f5ae8cd767 (diff)
downloadlinux-15eac2a74277bc7de68a7c2a64a7c91b4b6f5961.tar.xz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c
index f3f96ba..0da6877 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;