From 48841e2dc38619a36911ba859bf0307431adb0f9 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Mon, 17 Dec 2012 12:07:07 -0800 Subject: [PATCH] datapath: Zero out key when looking up null ports. When we are searching for a tunnel port to receive traffic on, everything should be zeroed out by the time that we get to null ports since they are wildcarded. However, if certain other ports also exist (primarily multicast ports with keys) then this might not be the case and the key can be set. Signed-off-by: Jesse Gross Acked-by: Kyle Mestery --- datapath/tunnel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath/tunnel.c b/datapath/tunnel.c index 1db60d213..26d9014c4 100644 --- a/datapath/tunnel.c +++ b/datapath/tunnel.c @@ -273,6 +273,7 @@ struct vport *ovs_tnl_find_port(struct net *net, __be32 saddr, __be32 daddr, if (null_ports) { lookup.daddr = 0; lookup.saddr = 0; + lookup.in_key = 0; lookup.tunnel_type = tunnel_type; vport = port_table_lookup(&lookup, mutable); if (vport) -- 2.47.0