]>
Commit | Line | Data |
---|---|---|
fa55523a GKH |
1 | From foo@baz Thu Dec 14 11:45:40 CET 2017 |
2 | From: Sunil Goutham <sgoutham@cavium.com> | |
3 | Date: Thu, 23 Nov 2017 22:34:31 +0300 | |
4 | Subject: net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts | |
5 | ||
6 | From: Sunil Goutham <sgoutham@cavium.com> | |
7 | ||
8 | ||
9 | [ Upstream commit fa6d7cb5d76cf0467c61420fc9238045aedfd379 ] | |
10 | ||
11 | Don't offload IP header checksum to NIC. | |
12 | ||
13 | This fixes a previous patch which enabled checksum offloading | |
14 | for both IPv4 and IPv6 packets. So L3 checksum offload was | |
15 | getting enabled for IPv6 pkts. And HW is dropping these pkts | |
16 | as it assumes the pkt is IPv4 when IP csum offload is set | |
17 | in the SQ descriptor. | |
18 | ||
19 | Fixes: 3a9024f52c2e ("net: thunderx: Enable TSO and checksum offloads for ipv6") | |
20 | Signed-off-by: Sunil Goutham <sgoutham@cavium.com> | |
21 | Signed-off-by: Aleksey Makarov <aleksey.makarov@auriga.com> | |
22 | Reviewed-by: Eric Dumazet <edumazet@google.com> | |
23 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
24 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
25 | --- | |
26 | drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 1 - | |
27 | 1 file changed, 1 deletion(-) | |
28 | ||
29 | --- a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c | |
30 | +++ b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c | |
31 | @@ -1355,7 +1355,6 @@ nicvf_sq_add_hdr_subdesc(struct nicvf *n | |
32 | ||
33 | /* Offload checksum calculation to HW */ | |
34 | if (skb->ip_summed == CHECKSUM_PARTIAL) { | |
35 | - hdr->csum_l3 = 1; /* Enable IP csum calculation */ | |
36 | hdr->l3_offset = skb_network_offset(skb); | |
37 | hdr->l4_offset = skb_transport_offset(skb); | |
38 |