From: Jesse Gross Date: Mon, 17 Dec 2012 20:07:07 +0000 (-0800) Subject: datapath: Zero out key when looking up null ports. X-Git-Tag: v1.9.0~45 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=2ab69d5132b81cc6172181bef37a6db4ab04bd92 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 --- diff --git a/datapath/tunnel.c b/datapath/tunnel.c index fb4854af8..0a9bb3711 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)