openvswitch: add tunnel protocol to sw_flow_key
[cascardo/linux.git] / net / openvswitch / flow_table.c
index f2ea83b..95dbced 100644 (file)
@@ -427,7 +427,7 @@ static u32 flow_hash(const struct sw_flow_key *key,
 
 static int flow_key_start(const struct sw_flow_key *key)
 {
-       if (key->tun_key.u.ipv4.dst)
+       if (key->tun_proto)
                return 0;
        else
                return rounddown(offsetof(struct sw_flow_key, phy),