Article View: linux.kernel.netdev
Article #22873[PATCH net-next v2 3/6] sit: Enable BIG TCP packets
From: Haishuang Yan
Date: Thu, 26 Nov 2026 02:50
Date: Thu, 26 Nov 2026 02:50
46 lines
10649 bytes
10649 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 and GUE.
Reviewed-by: Alice Mikityanska <alice.kernel@fastmail.im>
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
Technical Details
Message-ID:
<20261126025015.10416-4-yanhaishuang@cmss.chinamobile.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371836-linux-kernel-netdev=dewy.ruReferences:
<20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371836-linux-kernel-netdev=dewy.ru From: yanhaishuang@cmss.chinamobile.com (Haishuang Yan) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v2 3/6] sit: Enable BIG TCP packets Date: Wed, 25 Nov 2026 18:50:12 -0800 Organization: Usenet Network Message-ID: <20261126025015.10416-4-yanhaishuang@cmss.chinamobile.com> References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="365079"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1dGzEYInKPmce+FDDaJPVUZu4dE= sha256:BYTcGapIT4ktLbmSLQur5qxLnKqbF1HzW0K3sjSVR5I= sha1:1uxSskjWXydb4TE/BRQhHg5imMs= sha256:lHtPlTUJtLAnbSsaTGC+yac5uRnpTNa/XXjemHRFTk4= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 1F752125EAC; Thu, 26 Nov 2026 05:51:27 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.75 X-Spam-Status: No, score=-2.75 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cmss.chinamobile.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YVZqA1bbvgfk; Thu, 26 Nov 2026 05:51:24 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371836-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 1AFA2125EB0; Thu, 26 Nov 2026 05:51:14 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 254692BEC5; Thu, 26 Nov 2026 02:51:02 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795661462; b=n4COZa0/R/j+SuNg1N7u8dPyxHs+4oK8awNP9dyL35mUd+pqIM4FFFhD1Aw3qp3VA7LW tOSSnQk3URNqWDKgzAUOP+yT4RgueLhHmeq1OOTgQb3U77nVT9+zb/iJkdxiOCltuBVfP x0qCupV9PaI1x6tveo+80Owce2mYU+xM8/VtdoQPg03ZqYVauQQbspR4eu9x2adfZawKp vCbuKp971kUVV0iixZCkA01+dyglJruUXKwx6gQCySPEWUN/LHHAAdtfMcdx3MkbTm50V L/Tg2R+ec+gJO72bggd4CfSXxMxg5wd212ywwwA2BJU2JA7QXgm6rfVxqIYazyQWMGA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795661462; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo: X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG: Received:X-RM-TRANSID:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=SfeYB57igHTTlxVjpfFBm169fwgr0jQg7p1/yKEN9h4=; b=umnW96LfiAggZzqi14d4KfpH79QwePr/MVr2gCKzseADeKtiTzdrd+uUxQI9LdKTWrzY NbpHtsrfGz+bv47NGNgNZXqq3JPh4ZFUNDH9E81xdyU8kAert0XMGcl1WNofsmPrk/Kn5 jQXoW8oqqFswvDBtTxyJ9XYYCrGngUpleHfpN1aYjWSa7vaozSbNrdH4EnOIVDnRTbAmT e9YlmN8luoxux0XOeNlshWSGz4ahCInjPwk1Ft2666TdD+Uiq9MnWM7TEZ+crGutBKMRU cnCsoFX0WBju1cZ3+h7xmwii7fTksbSviOBOIX+LlpSUnjEc7f0F6mwGjFOIyHazggA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=RP0qA63+; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF3DB606A323; Thu, 26 Nov 2026 02:51:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=RP0qA63+ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.137 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795661456; b=AZ3rIibByM/0/1fYjHdJQfAGBgBv6n7Q2EnMFz22JlOJoN79lezgWhnm2aDsn35ErBd2 +J9lCQnLu8OYmVuFMgtX04a+262EzF1xBMyAVOV5Se1xE4AcXz5S7ZUDACqP1yNGL4R1T pyXCZr/1ScsLDgs3DAEKW3FhsXEgHEo68/71dzYNEueifpaILrSl4XHla+ji6TuL72ORh ALORE4XRVA6ppsyQ4YmGY4UWY3gFtNeWRpevCTyHJ4mL9v+jKTbf3YbD4oV3ktDLGnbaF vfjlM4xJkaxhiwAVHJSn6jNHXFgzFht8lV3xYwOyNY32xL5wA37qcDLt+cNk0jhXQcQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795661456; h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received: X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From: To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=SfeYB57igHTTlxVjpfFBm169fwgr0jQg7p1/yKEN9h4=; b=uZsJaUHkCxPjqgLV5ex4DOWuXJZd53nrFz+/W5RfE03QU6IzOeGrn2QrdqIOyG6fppwB INoNZf+W8VFc0hcM4mHhoppgIpPd7jebiv0UJ1oYrv1sne7bcVrj00mMuAi3y2R4lTfGG PzW7MeEjVwooGLVh+6w9mNgPq8vaVAVdE8SXISy4luY2B1BYDSudJs3e36K5vua9r++L0 bFFWM/4/J2szNMzACJLXcPCNSTwBqr0P9pAl3T32P/zGB07mXBY5hzIbNMqY4DN303a2B TmUSGg2UY4gA/ITSQ4ZtUFS6SOn9dKxWuWdqa5kqVxGOyPMNuDOuOb7zKKoKcVNjxXA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=RP0qA63+; arc=none smtp.remote-ip=111.22.67.137 X-Received: from cmccmta4.chinamobile.com (cmccmta4.chinamobile.com [111.22.67.137]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC531606A338; Thu, 26 Nov 2026 02:50:54 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BC531606A338 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmss.chinamobile.com; s=default; l=0; h=from:subject:message-id:to:cc:mime-version; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=RP0qA63+S+UEjokQNopUb703S+eZPFtlTnn079r6z9ygoKFJaL6tT1tuHAvZbiMusOFCtXa+Lbjlx DY9q3FRmw8wl/V7bTSz+4CiF12tNEWVpgheeWHZmgj09ZYb6zi/a594dJaF2AQJBkh4WiBS6dyX2xF ZFaHJ5Xp/GPFW2R8= X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app08-12008 (RichMail) with SMTP id 2ee86b079e8d45d-f6ebe; Thu, 26 Nov 2026 10:50:53 +0800 (CST) X-RM-TRANSID: 2ee86b079e8d45d-f6ebe X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from (unknown[104.224.130.48]) by rmsmtp-syy-appsvr08-12008 (RichMail) with SMTP id 2ee86b079e693eb-59c39; Thu, 26 Nov 2026 10:50:53 +0800 (CST) X-RM-TRANSID: 2ee86b079e693eb-59c39 X-Cc: David Ahern <dsahern@kernel.org>, Ido Schimmel <idosch@nvidia.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>, Alice Mikityanska <alice.kernel@fastmail.im>, Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list