IPv6/GRO: generic helper to remove temporary HBH/jumbo header in driver
authorCoco Li <lixiaoyan@google.com>
Sat, 10 Dec 2022 04:16:45 +0000 (04:16 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Dec 2022 23:41:44 +0000 (15:41 -0800)
commit89300468e2b2ec216c7827ba04ac45c129794403
tree9fd4cb7c6223c014ee7b16c34d720c5f1716832f
parent8150f0cfb24f781aa61a332bf2426365462afff8
IPv6/GRO: generic helper to remove temporary HBH/jumbo header in driver

IPv6/TCP and GRO stacks can build big TCP packets with an added
temporary Hop By Hop header.

Is GSO is not involved, then the temporary header needs to be removed in
the driver. This patch provides a generic helper for drivers that need
to modify their headers in place.

Tested:
Compiled and ran with ethtool -K eth1 tso off
Could send Big TCP packets

Signed-off-by: Coco Li <lixiaoyan@google.com>
Link: https://lore.kernel.org/r/20221210041646.3587757-1-lixiaoyan@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ipv6.h
net/ipv6/ip6_offload.c