]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
OVS: remove VLAN_TAG_PRESENT - fixup
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sat, 10 Nov 2018 18:55:34 +0000 (19:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Nov 2018 21:42:16 +0000 (13:42 -0800)
It turns out I missed one VLAN_TAG_PRESENT in OVS code while rebasing.
This fixes it.

Fixes: 9df46aefafa6 ("OVS: remove use of VLAN_TAG_PRESENT")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c

index fa393815991e221de5edc92d712f710eb0b5c497..57e07768c9d12b65e9f1dc8d7271040e25cfd82f 100644 (file)
@@ -597,7 +597,7 @@ static int key_extract(struct sk_buff *skb, struct sw_flow_key *key)
                 * skb_vlan_pop(), which will later shift the ethertype into
                 * skb->protocol.
                 */
-               if (key->eth.cvlan.tci & htons(VLAN_TAG_PRESENT))
+               if (key->eth.cvlan.tci & htons(VLAN_CFI_MASK))
                        skb->protocol = key->eth.cvlan.tpid;
                else
                        skb->protocol = key->eth.type;