Commit f3d0f753f066 ("vxlan: Enable BIG TCP packets") and commit 03ebe91b0f61 ("geneve: Enable BIG TCP packets") allowed BIG TCP on UDP tunnels. ipip can carry BIG TCP packets as well: the outer IPv4 header gets its total length from iph_set_totlen() on output, the GSO and GRO paths already handle IPv4 BIG TCP, and FOU and GUE encapsulation set the UDP length with udp_set_len() since commit 47282504ad21 ("udp: Support BIG TCP GSO packets where they can occur"). Bump tso_max_size up to GSO_MAX_SIZE so that the admin can use BIG TCP with ipip. The default gso_max_size and gso_ipv4_max_size stay at 64KB, so nothing changes unless they are raised explicitly. iperf3 TCP over ipip between two netns connected by veth, without encapsulation, 3 runs of 10 seconds each, in a KVM guest with 8 vCPUs on an Intel Core i7-14700 host: gso_max_size/gso_ipv4_max_size 65536: 94.2, 97.4, 97.2 Gbit/s gso_max_size/gso_ipv4_max_size 196608: 133.7, 128.5, 130.5 Gbit/s (+36%) A later patch in this series extends big_tcp_tunnels.sh to cover ipip without encapsulation, and with FOU and GUE. Signed-off-by: Haishuang Yan --- net/ipv4/ipip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index 15189e1fa06..74af06b1d94 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c @@ -416,6 +416,7 @@ static void ipip_tunnel_setup(struct net_device *dev) dev->addr_len = 4; dev->lltx = true; netif_keep_dst(dev); + netif_set_tso_max_size(dev, GSO_MAX_SIZE); dev->features |= IPIP_FEATURES; dev->hw_features |= IPIP_FEATURES; -- 2.43.0