Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Haishuang Yan
Tue, 24 Nov 2026 01:31
[PATCH net-next 3/6] sit: Enable BIG TCP packets
Author: Haishuang Yan
Date: Tue, 24 Nov 2026 01:31
Date: Tue, 24 Nov 2026 01:31
45 lines
10485 bytes
10485 bytes
Commit f3d0f753f066 ("vxlan: Enable BIG TCP packets") and
commit 03ebe91b0f61 ("geneve: Enable BIG TCP packets") allowed BIG TCP
on UDP tunnels. sit can carry BIG TCP packets as well: the outer IPv4
header gets its total length from iph_set_totlen() on output, the GSO
path already handles BIG TCP, and FOU encapsulation sets 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 sit. The default gso_max_size and gso_ipv4_max_size stay at 64KB,
so nothing changes unless they are raised explicitly.
iperf3 TCP over sit 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 65536: 96.0, 95.4, 98.0 Gbit/s
gso_max_size 196608: 136.9, 131.0, 129.8 Gbit/s (+37%)
On the receive side, GRO does not build sit packets larger than 64KB, so
the gain comes from the sender when the underlay offloads GSO.
A later patch in this series extends big_tcp_tunnels.sh to cover sit
without encapsulation and with FOU.
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
---
net/ipv6/sit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index a7ec800216a..97044b1cad2 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1577,6 +1577,7 @@ static void ipip6_tunnel_setup(struct net_device *dev)
dev->max_mtu = IP6_MAX_MTU - t_hlen;
dev->flags = IFF_NOARP;
netif_keep_dst(dev);
+ netif_set_tso_max_size(dev, GSO_MAX_SIZE);
dev->addr_len = 4;
dev->lltx = true;
dev->features |= SIT_FEATURES;
--
2.43.0
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads