]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.7/net-thunderx-fix-tcp-udp-checksum-offload-for-ipv6-pkts.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 4.14.7 / net-thunderx-fix-tcp-udp-checksum-offload-for-ipv6-pkts.patch
CommitLineData
fa55523a
GKH
1From foo@baz Thu Dec 14 11:45:40 CET 2017
2From: Sunil Goutham <sgoutham@cavium.com>
3Date: Thu, 23 Nov 2017 22:34:31 +0300
4Subject: net: thunderx: Fix TCP/UDP checksum offload for IPv6 pkts
5
6From: Sunil Goutham <sgoutham@cavium.com>
7
8
9[ Upstream commit fa6d7cb5d76cf0467c61420fc9238045aedfd379 ]
10
11Don't offload IP header checksum to NIC.
12
13This fixes a previous patch which enabled checksum offloading
14for both IPv4 and IPv6 packets. So L3 checksum offload was
15getting enabled for IPv6 pkts. And HW is dropping these pkts
16as it assumes the pkt is IPv4 when IP csum offload is set
17in the SQ descriptor.
18
19Fixes: 3a9024f52c2e ("net: thunderx: Enable TSO and checksum offloads for ipv6")
20Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
21Signed-off-by: Aleksey Makarov <aleksey.makarov@auriga.com>
22Reviewed-by: Eric Dumazet <edumazet@google.com>
23Signed-off-by: David S. Miller <davem@davemloft.net>
24Signed-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