🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4115

Re: [PATCH net-next v4 1/2] bareudp: Enable BIG TCP packets

#4115
From: Simon Horman
Date: Fri, 16 Oct 2026 19:10
35 lines
7230 bytes
On Sun, Oct 11, 2026 at 06:20:22PM +0800, Haishuang Yan wrote:
> Commit f3d0f753f066 ("vxlan: Enable BIG TCP packets") and commit
> 03ebe91b0f61 ("geneve: Enable BIG TCP packets") allowed BIG TCP on vxlan
> and geneve, after the preceding patches of that series made the common
> UDP tunnel transmit path handle GSO packets larger than 64KB.
> 
> bareudp transmits through the same helpers, udp_tunnel_handle_offloads()
> followed by udp_tunnel_xmit_skb() or udp_tunnel6_xmit_skb(), and does
> not fill in any length field itself. Bump tso_max_size up to
> GSO_MAX_SIZE so that the admin can use BIG TCP with bareudp too.
> 
> The default gso_max_size and gso_ipv4_max_size stay at 64KB, so nothing
> changes unless they are raised explicitly.
> 
> iperf3 TCP over bareudp (ethertype ipv4, IPv4 outer) between two netns
> connected by veth, MTU 1600 on veth, 3 runs of 20 seconds each. This
> was measured in a QEMU TCG guest, so only the relative numbers are
> meaningful:
> 
>   gso_max_size/gso_ipv4_max_size 65536:
>     4380.6, 4404.2, 4354.5 Mbit/s, average 4379.8 Mbit/s
> 
>   gso_max_size/gso_ipv4_max_size 196608:
>     5509.4, 5454.7, 5497.4 Mbit/s, average 5487.2 Mbit/s (+25%)
> 
> With 196608, about 90k to 100k packets larger than 64KB were
> transmitted on the bareudp device per run, none with 65536. Without
> this patch, setting gso_max_size to 196608 is rejected.
> 
> Assisted-by: LLM
> Acked-by: Alice Mikityanska <alice.kernel@fastmail.im>
> Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261016191049.GP363352@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347502-linux-kernel-netdev=dewy.ru
References: <20261011102023.1603595-1-yanhaishuang@cmss.chinamobile.com> <20261011102023.1603595-2-yanhaishuang@cmss.chinamobile.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347502-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4 1/2] bareudp: Enable BIG TCP packets
Date: Fri, 16 Oct 2026 20:10:49 +0100
Organization: Usenet Network
Message-ID: <20261016191049.GP363352@horms.kernel.org>
References: <20261011102023.1603595-1-yanhaishuang@cmss.chinamobile.com>
 <20261011102023.1603595-2-yanhaishuang@cmss.chinamobile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2853462"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:IwMQzrdsbtIjTHsi6yaPotSPw40= sha256:7ntwmijls7a19wkEl/EqkI88VWi72/fIz5XHcTRovs8=
	sha1:wmaY7Oge5zRzcU9Jk8dep6692PE= sha256:71f1KlVttldkUHk4jk2cUcNePRw81+9NBVh9uQs50Hk=
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 23BA51105D3; Fri, 16 Oct 2026 22:14:43 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.64
X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	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 (2048-bit key)
	header.d=kernel.org
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 bmbiQar1duhQ;
	Fri, 16 Oct 2026 22:14:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-347502-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 361211105B2; Fri, 16 Oct 2026 22:14:32 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sin.lore.kernel.org (Postfix) with ESMTP id 5A4B32C8A7; Fri, 16 Oct 2026 19:10:56 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 10F8448DB30;
	Fri, 16 Oct 2026 19:10:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fD9gPJZ7"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id F356D4CF48E;
	Fri, 16 Oct 2026 19:10:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792177855; cv=none; b=WMJK8N/kDiKk52IYTBU4KKPM/CovNvijNGUFZ0sIbGjGu0wDXF6OfjNoMuIb4Lh5wxaV8G1POVVk8iUKas6ekk4NLiJYvJCYUa35lMFp1K3/YflEIq1E2d/jeXv6lKMaouznbzaFiGfzYKFBcdo/Ngw525JEFfz8/nrKRwVkdNg=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792177855; c=relaxed/simple;
	bh=606KlGMo0MVhzdtR12lakgMQf+fqG6H2vYyxgDLPG/g=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=Ep8JY20JnIWK81SP8LjLBymVtuCe5GcSQks84vAvclZ7G5tYFvS9UCnSRlQ3+lgncWFVPEixZzh2F0q9Hd75dqITBvZaAr7UJhULKa4MLWuR4BeJvwXXAFiscdKQLU2uLcJ5+c/kw7ZbnCwHOFOaT1zAAvgNozGL6pU8ltLWRa4=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fD9gPJZ7; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 432F71F000C4;
	Fri, 16 Oct 2026 19:10:51 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792177853;
	bh=p1Zz/PiCYcCVVY65MsA8HndDLlvQUQID6r8srmwlFSM=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=fD9gPJZ7Zbt86fI7xeagIWG1hbxt3DYzPC/VHspoLFERmXJgOfyI3M8algfzp0FR/
	 6VSUDvB3cqLoDq73Ln730YB/2hbRbFYeATa1TKzXe2IhyJHRqGIk8OXd7KjEUs9vIM
	 ydjIiUlj6Zeokh0mU6Pg9LQr/TU+MafSo2RvG+hlactArx4k2w9D1KYfUg34QN0PyA
	 D0Nya4gM9Cql8pn1T1lniHJ8yLcRnJnnKKoTylMzoHFTrAM6QDbtoRzpWMsJDK6ITg
	 OC9zNDKJ3VgoLvNLA+69jq/Ph4lap6nRVDabg44uY8f4Laxa9oRrPd9S2EApFwZ+KC
	 WW0A2Ab00xncw==
X-Cc: netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Shuah Khan <shuah@kernel.org>,
	Alice Mikityanska <alice.kernel@fastmail.im>,
	Daniel Borkmann <daniel@iogearbox.net>,
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261011102023.1603595-2-yanhaishuang@cmss.chinamobile.com>