]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix stacked vlan offload features computation
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Mon, 22 Dec 2014 10:04:14 +0000 (19:04 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Dec 2014 05:08:33 +0000 (00:08 -0500)
commit6440ae23c90a2a3656c8ffebc198d1c3adb71028
treeb002f4fc70040e8763d53857582ae6cce5c145da
parent84e4f5ace86b0902afaa78f46bd50e45530fd5f8
net: Fix stacked vlan offload features computation

When vlan tags are stacked, it is very likely that the outer tag is stored
in skb->vlan_tci and skb->protocol shows the inner tag's vlan_proto.
Currently netif_skb_features() first looks at skb->protocol even if there
is the outer tag in vlan_tci, thus it incorrectly retrieves the protocol
encapsulated by the inner vlan instead of the inner vlan protocol.
This allows GSO packets to be passed to HW and they end up being
corrupted.

Fixes: fe645a76284a ("offloading: Force software GSO for multiple vlan tags.")
Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c