]> 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)
commit10283c1bf98d2c40e66ef1f9742d1d951f86332c
tree6b0113d226e2a59bb9c9316e659234a0d13dace6
parent8bc0839f6cd03de129c937053546e82f8e333aa6
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: 25aee51164af ("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