datapath: Zero out key when looking up null ports.
authorJesse Gross <jesse@nicira.com>
Mon, 17 Dec 2012 20:07:07 +0000 (12:07 -0800)
committerJesse Gross <jesse@nicira.com>
Mon, 17 Dec 2012 21:52:07 +0000 (13:52 -0800)
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 <jesse@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
datapath/tunnel.c

index fb4854a..0a9bb37 100644 (file)
@@ -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)