Article View: linux.kernel.netdev
Article #1518[PATCH net-next v3 1/2] bareudp: Enable BIG TCP packets
From: Haishuang Yan
Date: Thu, 08 Oct 2026 05:55
Date: Thu, 08 Oct 2026 05:55
50 lines
8166 bytes
8166 bytes
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>
---
drivers/net/bareudp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c
index c3b5ed52d877..fcc33e302b9c 100644
--- a/drivers/net/bareudp.c
+++ b/drivers/net/bareudp.c
@@ -589,6 +589,7 @@ static void bareudp_setup(struct net_device *dev)
dev->max_mtu = IP_MAX_MTU - BAREUDP_BASE_HLEN;
dev->type = ARPHRD_NONE;
netif_keep_dst(dev);
+ netif_set_tso_max_size(dev, GSO_MAX_SIZE);
dev->priv_flags |= IFF_NO_QUEUE;
dev->lltx = true;
dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
--
2.43.0
Technical Details
Message-ID:
<20261008055513.1560739-2-yanhaishuang@cmss.chinamobile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344001-linux-kernel-netdev=dewy.ruReferences:
<20261008055513.1560739-1-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-344001-linux-kernel-netdev=dewy.ru From: yanhaishuang@cmss.chinamobile.com (Haishuang Yan) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v3 1/2] bareudp: Enable BIG TCP packets Date: Thu, 8 Oct 2026 13:55:12 +0800 Organization: Usenet Network Message-ID: <20261008055513.1560739-2-yanhaishuang@cmss.chinamobile.com> References: <20261008055513.1560739-1-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1231428"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3BsxkrRK7bVo0xXeFKbCjGAWbhE= sha256:oU3KMNRbkPNgOjMfEwgGRqtDBc0iawqAhj9k7nlsazY= sha1:wODBz2k33gn8Jnx05t04IlRu54c= sha256:fRHuQ4IqfgRdUb3lQZa0H2B1cWayHmQCYzti+L5Cd9o= 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 E201810F673; Sat, 10 Oct 2026 04:20:00 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: 0.034 X-Spam-Status: No, score=0.034 tagged_above=-9999 required=6.31 tests=[DATE_IN_PAST_24_48=0.485, DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-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 GXKazBZ_r31U; Sat, 10 Oct 2026 04:19:57 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-344001-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 9545410C9A0; Sat, 10 Oct 2026 04:19:52 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 14864384C1; Sat, 10 Oct 2026 01:19:39 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 502BD175A8B; Sat, 10 Oct 2026 01:19:37 +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.b="hF92NX+4" X-Received: from cmccmta6.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2CF02F8E91; Sat, 10 Oct 2026 01:19:33 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791595177; cv=none; b=NP3Sh6P6YimJEoBDKjYIqaWlA2VDiNJmiaJQ58s8zW/xyh/kt8HGO6vXKYmegL0c1PJDnOk3Ikm39Cg2j0AFyAVqAieZs3vvVAGLOBjpbZ5YqD9meehZjhd8/Om6/2UdbbZAt5Hx2D+mPWozlA7MnR+5Qu/VS1dI9DVhHbgXKlk= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791595177; c=relaxed/simple; bh=31WdfSjCWnB/HGcobwieMsmopL0/q4Qyr3sHHctciOU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QovXQ62W41FHqfII6T+5JhBAAv8Znr1rU9mxHIafpN3wSqzQVaHwE76jkmpmD4m1kbhQMmyQKaoxgw48oSFOKpIS5sWWSfJkvxsMI5nYIY7JLR1815Fk9Tr7Zy2y55BJ7t4IUHMO4Gt/ZSw6grh4as7qiCaIRPFVQU0K67gXvsw= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; dkim=pass (1024-bit key) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.b=hF92NX+4; arc=none smtp.client-ip=111.22.67.139 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=hF92NX+4PKQlCk36n0azjzLoEAZNMSzBRQZ+65LW8GHQQyUZMo1n0iJ50aV8I4KdARfQ1NgXZee8k Ywjl2C0DBfcEcyeUZu6d3eo/SHC9l1P8K1sOKUvBOGSMfIQS+hqE66PnCT2eM5dkJSahH1STl6k4Rw WC8bfZSC1U4lyI2s= 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-app01-12001 (RichMail) with SMTP id 2ee16ac9929abbc-9e4dd; Sat, 10 Oct 2026 09:19:22 +0800 (CST) X-RM-TRANSID: 2ee16ac9929abbc-9e4dd X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from (unknown[223.108.79.100]) by rmsmtp-syy-appsvr02-12002 (RichMail) with SMTP id 2ee26ac99295573-599fe; Sat, 10 Oct 2026 09:19:22 +0800 (CST) X-RM-TRANSID: 2ee26ac99295573-599fe X-Cc: Alice Mikityanska <alice.kernel@fastmail.im>, Daniel Borkmann <daniel@iogearbox.net>, 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>, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Haishuang Yan <yanhaishuang@cmss.chinamobile.com> X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <20261008055513.1560739-1-yanhaishuang@cmss.chinamobile.com> 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>