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: 3f518509de
("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-07-22 11:12:29 -07:00
2018-08-15 15:04:25 -07:00
2018-07-26 21:24:23 -07:00
2018-08-07 17:54:19 -07:00
2018-03-26 12:07:49 -04:00
2018-09-28 11:12:29 -07:00
2018-10-02 11:31:54 -07:00
2018-07-23 12:44:52 +02:00
2018-09-21 19:15:15 -07:00
2018-09-23 22:25:25 -07:00
2018-06-23 10:44:30 +09:00
2018-07-24 19:21:58 -07:00
2018-07-05 20:05:54 +09:00
2018-10-04 21:41:16 -07:00
2018-06-12 16:19:22 -07:00
2018-09-25 10:33:52 -07:00
2018-07-16 09:04:54 +02:00
2018-08-13 09:21:05 -07:00
2018-10-05 11:47:19 -07:00
2018-09-21 19:15:14 -07:00
2018-08-04 13:08:06 -07:00
2018-07-12 17:39:15 -07:00
2018-03-26 15:55:57 +02:00
2018-08-07 17:54:19 -07:00
2018-10-05 00:59:21 -07:00
2018-07-07 17:52:26 +02:00
2018-10-02 11:27:10 -07:00
2018-09-28 11:12:28 -07:00
2018-09-17 07:55:19 -07:00
2018-09-28 11:12:28 -07:00
2018-09-21 19:15:15 -07:00
2018-09-28 11:12:29 -07:00
2018-10-03 14:40:32 -07:00
2018-10-05 14:52:43 -07:00
2018-07-29 13:15:57 -07:00
2018-10-04 09:53:03 -07:00
2018-08-15 16:01:47 -07:00
2018-09-17 08:24:25 -07:00
2018-06-12 16:19:22 -07:00
2018-09-21 09:07:50 -07:00
2018-03-26 12:07:49 -04:00
2018-05-31 14:17:33 -04:00
2018-08-11 12:05:19 -07:00
2018-10-02 11:47:58 -07:00
2018-08-13 08:49:37 -07:00
2018-07-27 13:45:14 -07:00
2018-06-23 20:52:09 +09:00
2018-07-05 20:05:54 +09:00
2018-06-12 16:19:22 -07:00
2018-09-29 11:46:07 -07:00
2018-10-02 22:16:00 -07:00
2018-10-02 22:33:43 -07:00
2018-09-18 20:09:57 -07:00
2018-05-31 14:13:43 -04:00
2018-08-07 17:54:20 -07:00
2018-09-21 19:15:14 -07:00
2018-09-28 11:12:29 -07:00
2018-09-21 19:15:14 -07:00
2018-08-23 13:44:43 -07:00
2018-08-11 12:11:36 -07:00
2018-09-18 19:48:08 -07:00
2018-07-09 13:41:34 -07:00
2018-07-27 19:16:37 +08:00
2018-07-05 19:33:39 +09:00
2018-09-17 07:49:33 -07:00
2018-06-12 16:19:22 -07:00
2018-09-21 19:15:15 -07:00
2018-07-24 19:21:58 -07:00
2018-03-26 12:07:49 -04:00
2018-06-12 16:19:22 -07:00
2018-07-27 13:45:14 -07:00
2018-08-01 09:49:02 -07:00
2018-09-11 23:33:19 -07:00
2018-08-01 09:49:02 -07:00