From: Pravin Shelar Date: Thu, 15 Sep 2011 00:39:43 +0000 (-0700) Subject: datapath: Fix tunnel lookup X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98fbd5b28b4e67d3cabe2ef1c7d1dfec9a1067ce;p=openvswitch datapath: Fix tunnel lookup Attached patch fixes tunnel lookup to do correct port comparison. This bug is introduced by commit 3544358aa5960b148bc31435a0062e9392530ec2 Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- diff --git a/datapath/tunnel.c b/datapath/tunnel.c index 25aea246..67fbd2ba 100644 --- a/datapath/tunnel.c +++ b/datapath/tunnel.c @@ -272,7 +272,7 @@ static struct tnl_vport *port_table_lookup(struct port_lookup_key *lookup) bucket = find_bucket(hash); hlist_for_each_entry_rcu(tnl_vport, n, bucket, hash_node) { - if (!port_cmp(tnl_vport, lookup)) + if (port_cmp(tnl_vport, lookup)) return tnl_vport; }