Maxime Chevallier 35f3625c21 net: mvpp2: Extract the correct ethtype from the skb for tx csum offload
When offloading the L3 and L4 csum computation on TX, we need to extract
the l3_proto from the ethtype, independently of the presence of a vlan
tag.

The actual driver uses skb->protocol as-is, resulting in packets with
the wrong L4 checksum being sent when there's a vlan tag in the packet
header and checksum offloading is enabled.

This commit makes use of vlan_protocol_get() to get the correct ethtype
regardless the presence of a vlan tag.

Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-05 14:52:43 -07:00
..
2018-10-02 15:55:16 -07:00
2018-10-05 11:54:55 -07:00
2018-06-12 16:19:22 -07:00
2018-10-02 16:16:59 -07:00
2018-07-20 12:33:37 -07:00
2018-05-28 23:02:22 -04:00
2018-05-28 22:59:54 -04:00
2018-07-29 12:57:26 -07:00
2018-10-01 23:27:28 -07:00
2018-09-16 15:33:50 -07:00
2018-09-26 20:27:59 -07:00