]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5192ad6bfb10dc4c966def8696ea48adc37c0cd5
tree6b0113d226e2a59bb9c9316e659234a0d13dace6
parent2a81ea173f1a727ab110fdbe0a4dd6755bab12f7
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: 29c0ad5ed24f ("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