[ovs-dev] [PATCH] Fix tunnel lookup
Pravin Shelar
pshelar at nicira.com
Thu Sep 15 00:27:55 UTC 2011
Attached patch fixes tunnel lookup to do correct port comparison.
This bug is introduced by commit 3544358aa5960b148bc31435a0062e9392530ec2
Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
---
datapath/tunnel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/datapath/tunnel.c b/datapath/tunnel.c
index 25aea24..67fbd2b 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;
}
--
1.7.1
More information about the dev
mailing list