🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22867

[PATCH net-next v2 1/6] ipip: Enable BIG TCP packets

#22867
From: Haishuang Yan
Date: Thu, 26 Nov 2026 02:50
43 lines
10548 bytes
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.

Reviewed-by: Alice Mikityanska <alice.kernel@fastmail.im>
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
---
 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
Technical Details
Message-ID: <20261126025015.10416-2-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-371833-linux-kernel-netdev=dewy.ru
References: <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-371833-linux-kernel-netdev=dewy.ru
From: yanhaishuang@cmss.chinamobile.com (Haishuang Yan)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v2 1/6] ipip: Enable BIG TCP packets
Date: Wed, 25 Nov 2026 18:50:10 -0800
Organization: Usenet Network
Message-ID: <20261126025015.10416-2-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="364757"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:XICA5WYlDLQpsPVum/O5xI7Ag3o= sha256:ZrOqbapnktAKAkH6ogjJuiMci7JfmwOleemKFvRanX4=
	sha1:uRcDK29w7CMpDzCm8fKmh2rfcw4= sha256:RztemTUScMJIaEoRdapBk7IGf34anS/SPGx9EV2bc8Y=
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 B8213125EAC; Thu, 26 Nov 2026 05:51:09 +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 VHi1eZerAttd;
	Thu, 26 Nov 2026 05:51:06 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371833-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 92960125EAF; Thu, 26 Nov 2026 05:50:57 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 1C22E284BE; Thu, 26 Nov 2026 02:50:55 +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=1795661454;
	b=qMcpYrWsNAuay4dG7qCfg1R5e3b4tm6o5P3FSkEFdkQdUO3esFn60el6o96d8fMmiTPX
	 H1+f2LnM17UeEzyB+lG8dR/lMEWyeDzPXvn7bbLrZ96l4RrVQ5W0DTlf+xrs0TXlWi1UN
	 gjB3wKlMj7XKdITX/0PYrQFcp8gQn78yfkHCQ0ectJIPNIT6O97XamqXQLmeJasfbksqK
	 CsR5nd5oVhH9d5MRiXuNsniUCqkGW7OdwmCe+kioBX6SUGTAJt1jHcdkejpP1193SFe8P
	 0bjZ8GAqLQT5ORyZ/qc5UntXqgAW6Nc/YS9knuThW5AH+VZZKlqrU4t4FYApXj/IvcQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795661454;
	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=tjFdlVVA7ekWCX0fNqw/SC5FFs7MiHWieiFjZJkC8e8=;
	b=e/XXkY+G0Q9tm06iL1EhUKA5UYNgDZSFyzj4vu5qHLVqskoZi2kymUO7boMg7ptUiLc/
	 cGBsgo+IJdMuNAlVsu3X3P0webLTi0CvnW1yINOUq9vJgehA+NHIkbRcSsMv5myWioOz6
	 EIfRn559jdcQMjSyAnjFEZu8ofV4PS8b/4sBMQn9HCKNbtlFOJTrbWcnHCV9bh9LHAA8U
	 6QGWRgZs0Pl6W9bj/CenGGfaAHA0SsPKrlb1SkHN+O0nJcieht6WshoQKaBiQgpZq8a3Q
	 pFBkO3AHvfQgaB73EIwvqFs0oG5jcKkI62Y0DDfwyBR5polF51VFmqg0yJCreg/o7Fg==
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=RDJwM465;
	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 31102606A683;
	Thu, 26 Nov 2026 02:50:54 +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=RDJwM465
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.151
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795661448;
	b=3sU0hF9gdMyg8Djlsjjg4u69GTVyMaukj1j0WNqlte3SQloiiQzTEBlg32gLVHysVFpv
	 JJ/FGsXAHkoP9aj8UQmBQeabHHI2HC2+NpflpdR0n/aPGViqed6OwLK6hEaWpnYgbrzfY
	 QmxjlUwtZkdJOp15lCD8M4VH47w/66kVQSxyucT+yBHDj2Lawwpt1us510Zpa50wIN6Go
	 zlZnhFg8xcLrgxmMZkElPla6JkeOH/aru+kEdTZfguh7Y8M3nGxb5ySJNdZPa4s+0xcSF
	 1T55P1E5CsWcZrPnbp4/nezFIEl5wNnxHRImmgnXIvs+SEDAgNErtqqYuTc0lvbiI2Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795661448;
	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=tjFdlVVA7ekWCX0fNqw/SC5FFs7MiHWieiFjZJkC8e8=;
	b=sgI2sJ3CX6t7dNM/jGEx1sCTrsWkotVZnZ4Q2coP2htP8X/aSnQD/bDFGsmtllAmTuQj
	 SbD35/TS1Gg/Ryb+jdj16zThr33vxp0EHivsBaC8+x4emPxfHTJEXxXXpNBjvGH277CU4
	 i6wbANLrCL+eNTpO0FXyG+obpOpSuEvwqiKYIKl8aZkb6Lxkp3TSBNoeBr5VHE8L8j3xk
	 rDhuX3ccExP+VBp15tT4SRzKIbLpaT1sySY+ft2vJA1cQ3kDXdrUSWRo1Ws645Md2Qhea
	 Jw1oBMttl4jORfUDXN1/3BVlWXG/IX6s5o5EPXC2MB0Fpy1HrDSWacdmGfhLvx728fQ==
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=RDJwM465;
	arc=none smtp.remote-ip=111.22.67.151
X-Received: from cmccmta8.chinamobile.com (cmccmta8.chinamobile.com [111.22.67.151])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 228CA606A323;
	Thu, 26 Nov 2026 02:50:45 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 228CA606A323
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=RDJwM465hiRtcq2s0DiYhflvlDWymGKWrcBg7hZ5TVE6+A+DIk2CFyR4xm3kVwSU+1GZCeY/S0omw
	 ToL+s9uA8RGy2Q4JsEsEF5yBjVDQAjKBWefd4mB61Pgf+i/iHp2oygGqMr2Wz3WdVoN8QT6tMjcCuI
	 5HtsRcm9JkD1AYtg=
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-app06-12006 (RichMail) with SMTP id 2ee66b079e82045-23635;
	Thu, 26 Nov 2026 10:50:43 +0800 (CST)
X-RM-TRANSID: 2ee66b079e82045-23635
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-59c24;
	Thu, 26 Nov 2026 10:50:43 +0800 (CST)
X-RM-TRANSID: 2ee86b079e693eb-59c24
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