net/openvswitch: Set the ipv6 source tunnel key address attribute correctly
[sfrench/cifs-2.6.git] / net / openvswitch / flow_netlink.c
index 6f5fa50f716d066333b30edde43e5165b9fe94be..a08ff834676ba9a8f82bb602cbc15d0d20e76478 100644 (file)
@@ -604,7 +604,7 @@ static int ip_tun_from_nlattr(const struct nlattr *attr,
                        ipv4 = true;
                        break;
                case OVS_TUNNEL_KEY_ATTR_IPV6_SRC:
-                       SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.dst,
+                       SW_FLOW_KEY_PUT(match, tun_key.u.ipv6.src,
                                        nla_get_in6_addr(a), is_mask);
                        ipv6 = true;
                        break;