🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22954

Re: [PATCH net-next v2 5/6] ip6_gre: Enable BIG TCP packets

#22954
From: Hangbin Liu
Date: Thu, 26 Nov 2026 08:13
62 lines
11026 bytes
On Wed, Nov 25, 2026 at 06:50:14PM -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. ip6gre and ip6gretap can carry BIG TCP packets as well:
> IPv6 BIG TCP no longer needs a hop-by-hop jumbo header, the GRE header
> has no length field, the GSO and GRO paths already handle it, 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 ip6gre and ip6gretap. ip6erspan 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 ip6gre and ip6gretap, with IPv4 traffic 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:
> 
>   ip6gre,    65536:   84.7,  84.4,  90.2 Gbit/s
>   ip6gre,    196608: 117.7, 112.5, 128.4 Gbit/s (+38%)
>   ip6gretap, 65536:  103.1,  97.9, 102.4 Gbit/s
>   ip6gretap, 196608: 123.0, 125.7, 124.8 Gbit/s (+23%)
> 
> A later patch in this series extends big_tcp_tunnels.sh to cover ip6gre
> and ip6gretap 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/ipv6/ip6_gre.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c
> index 26c0e1c4de1..0ace21db3b4 100644
> --- a/net/ipv6/ip6_gre.c
> +++ b/net/ipv6/ip6_gre.c
> @@ -1462,6 +1462,7 @@ static void ip6gre_tunnel_setup(struct net_device *dev)
>  	dev->flags |= IFF_NOARP;
>  	dev->addr_len = sizeof(struct in6_addr);
>  	netif_keep_dst(dev);
> +	netif_set_tso_max_size(dev, GSO_MAX_SIZE);
>  	/* This perm addr will be used as interface identifier by IPv6 */
>  	dev->addr_assign_type = NET_ADDR_RANDOM;
>  	eth_random_addr(dev->perm_addr);
> @@ -1934,6 +1935,7 @@ static void ip6gre_tap_setup(struct net_device *dev)
>  	dev->priv_flags &= ~IFF_TX_SKB_SHARING;
>  	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
>  	netif_keep_dst(dev);
> +	netif_set_tso_max_size(dev, GSO_MAX_SIZE);
>  }
>  
>  static bool ip6gre_netlink_encap_parms(struct nlattr *data[],
> -- 
> 2.43.0
> 
> 
> 

Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Technical Details
Message-ID: <20261126081348.GG33976@Liu-laptop>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371942-linux-kernel-netdev=dewy.ru
References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> <20261126025015.10416-6-yanhaishuang@cmss.chinamobile.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371942-linux-kernel-netdev=dewy.ru
From: hangbin.liu@linux.dev (Hangbin Liu)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 5/6] ip6_gre: Enable BIG TCP packets
Date: Thu, 26 Nov 2026 16:13:48 +0800
Organization: Usenet Network
Message-ID: <20261126081348.GG33976@Liu-laptop>
References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com>
 <20261126025015.10416-6-yanhaishuang@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="414186"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:CZvE5KlzVUkR+LQ6reGP1hdyDwc= sha256:Y9tRlvmZtox535PJpHqlnp74L7JjrYDkHUXmNDsBGZk=
	sha1:KXCXsfVmQUI0IXLk3mpGOrJ+2FE= sha256:KsG24XjRIRkXrFS3QmPMDxcnQCbDSpRo9/TJTMDdkzw=
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 89388125EB4; Thu, 26 Nov 2026 11:14:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 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]
	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 bJd8IHrt-R8x;
	Thu, 26 Nov 2026 11:14:11 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371942-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 B773F125EB0; Thu, 26 Nov 2026 11:14:02 +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 9E07639FE5; Thu, 26 Nov 2026 08:14:00 +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=1795680840;
	b=FRzW8xaXKT7vzl8KYoV0LEbatPPKNcrM3pTxYEwUPUyzvqC7VUVpXoS+sSbaL1OTq3+h
	 RYtEVbmJ/JlH6Bvwi/HNAH6YvxQaRzDXMpc5LO3cTCIyEekmIIavWbLHzasOjyODw4Bxf
	 8VNaatzpUpOedVXGemGuxCTTNZ5RZLCQhi/2ycLYOO512tGqw/j3XP0U4qBvdUW08jNBs
	 Ysl58VmnHcG5QsVn9K4qAX1sov3dY3OgkM2Z/f+ym+03enIyRivTyoftdiJanozI2Q3By
	 NUpPZR4fhTv8cno0DdUyDbGRYDmZH0CaSjlMcGkCucJqda2i+qU68w9vGN360kbDfPw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795680840;
	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=du8ZpgKg7y+JSHPGHeVmHsAOuNQnkPoofwWOvxKg+Eo=;
	b=u/4aK4bp/AG7VEY3wpGkpkh8alSD5NKjmQOyQJ+9iYM8OP/BUH4Hmm285jIoUiprMz6J
	 TjfIbFBpGM8grBIetruE38X04AGu3fuInOJDYoVb/zk6nng2cLO2L/fHjn1e8KrZG/A7x
	 yUMw8xyWBDYkuHr9vhdFU0gRa3IQqMXedrXw45Rk9lfJ6QeEmwxIRe8EFC6VFlSTEZlFC
	 OCdVyvUUdaGnRyYJ5qmlTykVdcnaMOrzpo9MonAyr2lIY9h+tx7yl44fGxLiL0I84QHGt
	 M9+KLye5C9kjwec7eDNOnvQjvKFvgwnpGIE9hmCtaoTJyVd4qdWcoRZ9FBS6QBCkLBw==
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=PV7zQK7r;
	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 2C646606A684;
	Thu, 26 Nov 2026 08:14:00 +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=PV7zQK7r
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.121
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795680839;
	b=O0yy6H2BkeaXGGR7nC8tR12RJ5Ndd3rJ/jZ0SpvLBvy9/syS/8lnJKA1iPH/vrM4YJ+K
	 gIIKwyQTwXHnLJDy4MCXacahCCkxQKhF9IYsEQgydglTGJmxAkAt+nad5j4txA4GHpadj
	 Im0D/YdvQmbp6mTVN2OnbrLCFpJZiQH9fIXCxjwSHVA7Qevh59/4jaglu8IB9m7xb6z92
	 NnFfd29KEB8vtMlXL42PSvYJ1clBVig54+/jeUDMz1z58ongcvX8tgRwt/gHk82ozKy/n
	 fNtwcqrIv/Z5gwMrsGTtXP+7s08Ed91dMUUIg49h/gOgY+LXVtCelgjwlXIrM5u9Ggg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795680839;
	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=du8ZpgKg7y+JSHPGHeVmHsAOuNQnkPoofwWOvxKg+Eo=;
	b=Zk17fu2r/gtT2sVHgQRKZj4XlOtKTmmIb4DV9Bhg7PFLzEqH6bplZTGh5TqYYBzqJltm
	 zLkXZzsc9dwZRyYqXsfmavwgKeX4J2IBbYSoWRN0VeKq1FcrX4L9MqwhRNOmSaCov1zc1
	 ZjTm+YFHUnySLlIQROF5GHikacJko0cIHOCkrLqomdbjV3fN3WeOroS1U53e6mWFFDUJ3
	 cNfaUmJ5zOWfN8nEKioMOpm30gXpTvkHoste0nFS7qxD9F4RJMK0bf6GsEMiecehdUgyW
	 htwn2+mzYWYQjKm/HKADB2QYl+f+R+JkIm/q8WcUs/Hzr/p9ayfa4ZZmle7MIcPKdTQ==
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=PV7zQK7r;
	arc=none smtp.remote-ip=91.218.175.121
X-Received: from mta0.migadu.com (out-121.mta0.migadu.com [91.218.175.121])
	(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 AC889606A333
	for <netdev@vger.kernel.org>; Thu, 26 Nov 2026 08:13:58 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AC889606A333
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=DI1JO81xWUoyggcDXvguJ3RNZ3fdazMgtO43ps7msp4=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1795680836; v=1; x=1796285636;
 b=PV7zQK7rTd6Q/ha9e4zKHIZlw0r1teo6g5lXHhQs/62K79gKTdgYlAp5f2zOCIZK/kkaq9ag
 +fN2JGbKwa3jfJj5PRLUWAXkVUwR4ZRI7CB4Xe78NxY2IlBDRiPsSgB20VpGSat8OmFflJWA4O7
 1a9+RztSFOJBzqvodX8jA7oI=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by mta10.migadu.com with ESMTPS id 56ac476ea61aeb81;
	Thu, 26 Nov 2026 08:13:56 +0000
X-Mizu-Trace-ID: 56ac476ea61aeb81
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-6-yanhaishuang@cmss.chinamobile.com>