🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22951

Re: [PATCH net-next v2 2/6] gre: Enable BIG TCP packets

#22951
From: Hangbin Liu
Date: Thu, 26 Nov 2026 08:12
61 lines
10899 bytes
On Wed, Nov 25, 2026 at 06:50:11PM -0800, Haishuang Yan wrote:
> Commit f3d0f753f066 ("vxlan: Enable BIG TCP packets") and
> commit 03ebe91b0f61 ("geneve: Enable BIG TCP packets") allowed BIG TCP
> on UDP tunnels. gre and gretap can carry BIG TCP packets as well: the
> outer IPv4 header gets its total length from iph_set_totlen() on output,
> the GRE header has no length field, 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 gre and gretap. erspan is left alone. The default gso_max_size and
> gso_ipv4_max_size stay at 64KB, so nothing changes unless they are
> raised explicitly.
> 
> iperf3 TCP over gre and gretap 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:
> 
>   gre,    65536:   92.9,  94.2,  93.0 Gbit/s
>   gre,    196608: 130.6, 128.6, 123.3 Gbit/s (+37%)
>   gretap, 65536:  105.5, 106.6, 106.6 Gbit/s
>   gretap, 196608: 124.7, 129.7, 127.5 Gbit/s (+20%)
> 
> A later patch in this series extends big_tcp_tunnels.sh to cover gre and
> gretap with IPv4 and IPv6 traffic, 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/ip_gre.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
> index f8a7c435350..41ec54dcbfd 100644
> --- a/net/ipv4/ip_gre.c
> +++ b/net/ipv4/ip_gre.c
> @@ -1007,6 +1007,7 @@ static void ipgre_tunnel_setup(struct net_device *dev)
>  {
>  	dev->netdev_ops		= &ipgre_netdev_ops;
>  	dev->type		= ARPHRD_IPGRE;
> +	netif_set_tso_max_size(dev, GSO_MAX_SIZE);
>  	ip_tunnel_setup(dev, ipgre_net_id);
>  }
>  
> @@ -1394,6 +1395,7 @@ static void ipgre_tap_setup(struct net_device *dev)
>  	dev->netdev_ops	= &gre_tap_netdev_ops;
>  	dev->priv_flags &= ~IFF_TX_SKB_SHARING;
>  	dev->priv_flags	|= IFF_LIVE_ADDR_CHANGE;
> +	netif_set_tso_max_size(dev, GSO_MAX_SIZE);
>  	ip_tunnel_setup(dev, gre_tap_net_id);
>  }
>  
> -- 
> 2.43.0
> 
> 
> 
Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Technical Details
Message-ID: <20261126081208.GD33976@Liu-laptop>
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-371939-linux-kernel-netdev=dewy.ru
References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> <20261126025015.10416-3-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-371939-linux-kernel-netdev=dewy.ru
From: hangbin.liu@linux.dev (Hangbin Liu)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 2/6] gre: Enable BIG TCP packets
Date: Thu, 26 Nov 2026 16:12:08 +0800
Organization: Usenet Network
Message-ID: <20261126081208.GD33976@Liu-laptop>
References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com>
 <20261126025015.10416-3-yanhaishuang@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="413889"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:sb2j2bcmSywW6K90lRAmKHg3DhU= sha256:BU6yKnt3cAwPM6DvGJgdQseiCsu+dXbGkMs9Mt1HKwQ=
	sha1:odTxRdOzzHHLwTafL01tBDt7GBo= sha256:LMo5vCDqlIo2TfgA1Wl0i0FfLuViHm/7pBSSFReb48Y=
Content-Disposition: inline
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 194DE125EB4; Thu, 26 Nov 2026 11:12:35 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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=pass (1024-bit key)
	header.d=linux.dev
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 xNJXgf6qxnOa;
	Thu, 26 Nov 2026 11:12:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371939-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 463E7125EB3; Thu, 26 Nov 2026 11:12:22 +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 3F77B323F7; Thu, 26 Nov 2026 08:12:21 +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=1795680741;
	b=ld8q9QIS/XsXpOUZLKzIR/EZWq5+Nn4uhlqFozoerYDQXhxTPv9oEoQxpIeMFikPzCtI
	 UuqkrWf54Y9tEoeNtzq9x1ewEByq2ZREH5Et6HcyUleRK6LpKxWwkBikHTCCGRX49BAOA
	 oK8sdTHa/kiATuRyc/r051n9A4gFq9Yi45pV4gz/KeeRHybl0NxNsHZu3EnjZgZZI6e0v
	 YPGfQDrF8Z0LkeA4exNcUAIrvba7ePLpfKR5zXOH11ZDp5rlgFIOTDZxsOa4KIgEUoooA
	 QnrRJJztZyKRsdSkeXeZMpfgkmLTCyCbwQSZKUsL1C42jzQ6CcqCrZmBt8gn8N3kyjQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795680741;
	h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature:
	 X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=Lt2W2OTrkjivIClcb6pJV3VzVc47DEMwu0EDTWnTE10=;
	b=300NTU8PTvOPmXeor99ypyAZ8jrTMlQUrEBhOtEDQcGsSjSschr6Tj/EINvyocYqXGVG
	 HrmDtHnzTaec5fAdzwbeBz3ySg/UF4qSnhC14ZXgqGiyrb93BaxImTsS040ZrTsSqnd2H
	 uRffIc4v3eK23pVdBmt1cff8pxvh5YUDzkjv/grQsaiMsNfw07FMPvgfH/440X+YV598a
	 yoaQggICcN4OzuCZhC+h8iHwiUIJJWPutQ9FoyKFRRkgY/TYzv1rpFym803h3+EaufAcm
	 eG8sygz/ZkSjekP54HRkDMfF5vs1qhCOcvkSh9m754MfgMu8O3/flRMC6AskUYWi6/Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ClZTMiUX;
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	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 0511E606A326;
	Thu, 26 Nov 2026 08:12:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ClZTMiUX
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.40
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795680740;
	b=z7a17az69kZVXPceNTHhb+VTcS3kc/mvXaLfbqjKG+ej3xLJdMy1NifjKqC7DWmIU8Lm
	 aN8kk3Edg6PGPNAPR/46OJ5YIs3qzigqOKP6j+l7iHy1UVzjbKQvEJRY+vBB+EBIQcECE
	 4cQAKy4l39wB+R80WvAXhKKscGXnOvsaPD4MIiOCeL9s+GjOQGW3ZJ2Va0h0KGjpArWEs
	 U9jx/7i8onCDuPXyGDylZbSTdU9vfJdvw7ah1EGIudeGxsqNFQ2CCkC5xY8s6Nd+2ILPp
	 zmThEL4mYweVDfpqV975DxWrNOFPUYsbypR3qzw3BHpvSpZEOfLEVm7Ex9MnslZ6tLQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795680740;
	h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received:
	 X-Mizu-Trace-ID:X-Migadu-Flow:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=Lt2W2OTrkjivIClcb6pJV3VzVc47DEMwu0EDTWnTE10=;
	b=Ofvb3ysLzoeBruvU7elOjT1oiVGjAFCPj6AsULxgECBfiWyxeZzAgYg3svmmNUrSqJEh
	 Rjr9QvaveMYWoiJQq97QcWOe4887WdGn0f+Ko5FwN5kJ3ezyZ5XEIUq/w5ttGjBjoUOqG
	 gNMnITZ5WPUcl5OUkY0YnTt3seA0ooS+VNO8Jr0yaI0JcBRpOC4IfdaE6zylVo97/z+Na
	 /OfGc4EaRiNhxuQwKuSt8rsak2Km8t4Kl8XK8m2fx7Zm7tYxB7EVHEqr9HGk9yjC65kZg
	 NINnMT+Clm1vakoM7MCRLfS0XXflHOnG5g1SoR0E+eAMQ5LpiLOunn+FI8Pa7bd7d7A==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ClZTMiUX;
	arc=none smtp.remote-ip=91.218.175.40
X-Received: from mta0.migadu.com (out-40.mta0.migadu.com [91.218.175.40])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EBD2606A684
	for <netdev@vger.kernel.org>; Thu, 26 Nov 2026 08:12:18 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3EBD2606A684
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev
X-Envelope-To: netdev@vger.kernel.org
X-DKIM-Signature: a=rsa-sha256; bh=oX5t4fq6E1hsGhDXl7ngJctWdFTSMPrw40BAF+ejwYM=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1795680737; v=1; x=1796285537;
 b=ClZTMiUX5Kn4nvmqqs6Pf5/Wt0i/EZzzQ9G9LIUQeiAp9d3d+F2ptWKeeGBi5eCT8ezz2Az8
 CaOVpV9RFrccrrJ0F7YMex948weREo1me94BTP+M/SacZiDbCh5/HifF/5x0r3QurpnuVX7p0+o
 Y6wkxUO6lz1yAIwQAK+Zro/w=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by mta10.migadu.com with ESMTPS id 1252e3651f26e1a8;
	Thu, 26 Nov 2026 08:12:17 +0000
X-Mizu-Trace-ID: 1252e3651f26e1a8
X-Migadu-Flow: FLOW_OUT
X-Cc: netdev@vger.kernel.org, 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-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
X-In-Reply-To: <20261126025015.10416-3-yanhaishuang@cmss.chinamobile.com>