]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: fix vlan subtraction from packet length
authorJiri Benc <jbenc@redhat.com>
Mon, 10 Oct 2016 15:02:43 +0000 (17:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 14:03:23 +0000 (10:03 -0400)
commit21399fcef134c2cddefe5b1a123844231e991811
treebeb6ca2c112efd4ec175f6b51aeba5986c637315
parent67b87f175c2e97b1274af12000f9f1a071f8ae79
openvswitch: fix vlan subtraction from packet length

When the packet has its vlan tag in skb->vlan_tci, the length of the VLAN
header is not counted in skb->len. It doesn't make sense to subtract it.

Fixes: 9f12eb71df70 ("openvswitch: 802.1AD Flow handling, actions, vlan parsing, netlink attributes")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Eric Garver <e@erig.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.c