Eric Dumazet 82a01ab35b tcp: gso: really support BIG TCP
We missed that tcp_gso_segment() was assuming skb->len was smaller than 65535 :

oldlen = (u16)~skb->len;

This part came with commit 0718bcc09b35 ("[NET]: Fix CHECKSUM_HW GSO problems.")

This leads to wrong TCP checksum.

Adapt the code to accept arbitrary packet length.

v2:
  - use two csum_add() instead of csum_fold() (Alexander Duyck)
  - Change delta type to __wsum to reduce casts (Alexander Duyck)

Fixes: 09f3d1a3a52c ("ipv6/gso: remove temporary HBH/jumbo header")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230605161647.3624428-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-06-06 21:07:43 -07:00
..
2023-03-16 21:20:32 -07:00
2023-03-16 21:20:32 -07:00
2021-05-17 15:29:35 -07:00
2023-03-31 21:37:06 -07:00
2023-02-01 20:54:27 -08:00
2023-04-13 16:43:38 -07:00
2022-11-16 12:48:44 +00:00
2023-01-26 10:52:18 +01:00
2021-05-17 15:29:35 -07:00
2022-09-20 10:21:49 -07:00
2023-06-06 21:07:43 -07:00
2022-12-20 03:13:45 +01:00
2021-05-17 15:29:35 -07:00
2022-11-16 09:43:35 +00:00