openvswitch: Fix pop_vlan action for double tagged frames
authorEric Garver <e@erig.me>
Wed, 20 Dec 2017 20:09:22 +0000 (15:09 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Dec 2017 18:02:08 +0000 (13:02 -0500)
commitc48e74736fccf25fb32bb015426359e1c2016e3b
tree6b0113d226e2a59bb9c9316e659234a0d13dace6
parent58acfd714e6b02e8617448b431c2b64a2f1f0792
openvswitch: Fix pop_vlan action for double tagged frames

skb_vlan_pop() expects skb->protocol to be a valid TPID for double
tagged frames. So set skb->protocol to the TPID and let skb_vlan_pop()
shift the true ethertype into position for us.

Fixes: 5108bbaddc37 ("openvswitch: add processing of L3 packets")
Signed-off-by: Eric Garver <e@erig.me>
Reviewed-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c