openvswitch: add tunnel protocol to sw_flow_key
[linux-2.6-block.git] / net / openvswitch / flow_table.c
index f2ea83ba47631d4f650aa3dcf2f9c66cf4fd1c6f..95dbcedf0bd4422f927956b042ca469eeba56ea7 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),