diff options
| author | Pravin Shelar <pshelar@nicira.com> | 2011-09-14 17:39:43 -0700 |
|---|---|---|
| committer | Pravin Shelar <pshelar@nicira.com> | 2011-09-14 17:39:43 -0700 |
| commit | 98fbd5b28b4e67d3cabe2ef1c7d1dfec9a1067ce (patch) | |
| tree | 868ee8e5df87422ae7b6dee495bc6fa768feb75b /datapath | |
| parent | cc4015df5f24df80ad8ebf0ed965782b44964b4e (diff) | |
| download | openvswitch-98fbd5b28b4e67d3cabe2ef1c7d1dfec9a1067ce.tar.gz | |
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 <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'datapath')
| -rw-r--r-- | datapath/tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/tunnel.c b/datapath/tunnel.c index 25aea2467..67fbd2ba3 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; } |
