Article View: linux.kernel.netdev
Article #22953Re: [PATCH net-next v2 4/6] ip6_tunnel: Enable BIG TCP packets
From: Hangbin Liu
Date: Thu, 26 Nov 2026 08:13
Date: Thu, 26 Nov 2026 08:13
48 lines
10503 bytes
10503 bytes
On Wed, Nov 25, 2026 at 06:50:13PM -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. ip6tnl can carry BIG TCP packets as well: IPv6 BIG TCP
> no longer needs a hop-by-hop jumbo header, 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 ip6tnl. The default gso_max_size and gso_ipv4_max_size stay at
> 64KB, so nothing changes unless they are raised explicitly.
>
> iperf3 TCP over ip6tnl, 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:
>
> gso_max_size/gso_ipv4_max_size 65536: 93.0, 90.8, 83.3 Gbit/s
> gso_max_size/gso_ipv4_max_size 196608: 134.8, 123.4, 112.8 Gbit/s (+39%)
>
> A later patch in this series extends big_tcp_tunnels.sh to cover ip6tnl
> 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_tunnel.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
> index 64a184bca46..040012cdf15 100644
> --- a/net/ipv6/ip6_tunnel.c
> +++ b/net/ipv6/ip6_tunnel.c
> @@ -1919,6 +1919,7 @@ static void ip6_tnl_dev_setup(struct net_device *dev)
> dev->lltx = true;
> dev->pcpu_stat_type = NETDEV_PCPU_STAT_TSTATS;
> netif_keep_dst(dev);
> + netif_set_tso_max_size(dev, GSO_MAX_SIZE);
>
> dev->features |= IPXIPX_FEATURES;
> dev->hw_features |= IPXIPX_FEATURES;
> --
> 2.43.0
>
>
>
Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Technical Details
Message-ID:
<20261126081311.GF33976@Liu-laptop>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371941-linux-kernel-netdev=dewy.ruReferences:
<20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> <20261126025015.10416-5-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!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371941-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 4/6] ip6_tunnel: Enable BIG TCP packets Date: Thu, 26 Nov 2026 16:13:11 +0800 Organization: Usenet Network Message-ID: <20261126081311.GF33976@Liu-laptop> References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> <20261126025015.10416-5-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="414046"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:d2NKymcZXEwIBdBHEQpW9pb7zwo= sha256:pyMGTo1Yqu3HwtKSQ8O8HyCXarnNJ83ius5NKQre4Co= sha1:6O/z6KLXmq5XOh+wB5hjH1sujz8= sha256:7cAVV1fx/ugZrqC8RA3mxfUguY43idg1QfCtxnTZ91E= 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 A6BB7125EB4; Thu, 26 Nov 2026 11:13:36 +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 DmnGL_a_UhgS; Thu, 26 Nov 2026 11:13:33 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371941-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 824A4125EB1; Thu, 26 Nov 2026 11:13:25 +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 565CC394CA; Thu, 26 Nov 2026 08:13:24 +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=1795680804; b=iHFRAIMZgSyI2sHioWLZSwgOkyCdn2Zr1zyBZbGyqk45rYMRJ1JhXGreD9XqF1ypHKuh LV68Z/ZJH1fRQmOOhf20CVg+3o/uNBo59hTcOGnAQle+4kvqWRDx5Eva9pg6xXNHDhPkb xMpqYN1HHxghWkYv06Bv6gzyRP7oZnlMs+ILGTTJMcNA+AYSan4MbU7DHFlsUqmrUoQJs gvKJN9tssf0eo+MCu7jvAC1l10YClzMv6/l03Bv8X3o5O4VqrDHV0TluIJPUZdtMtp2mK 0XV5dt6Ka1ZF7xVMEmLGYfx+sOujZlFZ4qIZt6cG54GPzHS1avzEYsuRuJG15HLXQxQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795680804; 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=8ngE5yHiDIx7vBCYimPDgiAaC44Sef/mO5m2HnMkQ3g=; b=k+xkOolhQ8+qYK0A44QOt27LRZxT/i3NhYb1cWvBplMSP+2/vyfVi3wW5+TE5uFQeZnu FCd53eqOKB0iXCljGJcznapd0tSmLOa14vSn70uf3Ar/cFxOLpYtAt4ndBwVNOrs6b8cK KXZivjGbDA/CYSGxiZkT2izXRWcHeAyPNivgYwf1JtdIXqOa3pVzELKidF+WOqQrkrwyA Fqz7Wr61qFMfnJWm1P8rl9diZiLyxe1xb/iZkOuushhSDnVYe9rf/HQYSqh4CA66IkoWY kPCen6YWfpwCUw8QgAQHJEK0Kfyz4VQ5N8ujKV7E/NTksj9HojxqC16itbR+/HYh9XA== 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=HDgwxbPG; 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 DE3FA606A68B; Thu, 26 Nov 2026 08:13:23 +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=HDgwxbPG X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.249 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795680803; b=KGqza9fJ4lc0GL5oCXF0x3EN82MY8aFW/tyNlPz72WPLBVir4kzapERYWjPnxC0c7upb YiXPdBs2Bkr1na1cVLN1i+Sf/6AOuUWNvfBfIFz9AcAJ290lIVy3MGLRtGtTMYrjn8JWZ OjTPpkZKWKj4NFVSTKmlUTG5SOI8n1OHH1H0z9hF1Rn31rtD4dSwwQ2qlvLndYcCrp7qq FitYGvyzVTmrQhYhtAJON+IrssRrRNjx1h/3iK2fHz5FSutDu7Zlv2yti3/1/EcelndZS CnB66xd5whm3pbYvHzuXxDB8muXzbQWl3S2WWQaqu+82JJ+CQqt6SD04yVrgLQc1IWg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795680803; 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=8ngE5yHiDIx7vBCYimPDgiAaC44Sef/mO5m2HnMkQ3g=; b=Bj4hszZfts6Y/DFYRiUQikOBj6xvpksl2Ur5dHqT6Y25kDs5tgVaFRUk/OtOeXZvBc9Z Z2tfvVeLFCylgJ/NLmK55MCoEKaffnw0KCMTdYeb3CzPEoO+Gi2qHjhGaRv+L0bwi6g4O lHUq0WEThPLkwDnYOsMqDzT8pQtDio63pRI0eMIjyIhm986+ntqCCglx9Udjz5RqKSQbt tzLXlC8WqfH9BOKxa2IBcCp1UDxCcc01vxpRRj7heQj8l3rUOfQlt+V1B2835E26keX4p M9A7P2oRxuYsldoWbEFx5UwHYEaXL6Rejhve1S56LBqZsak9yCFmkrhb8yLCnuYLZgg== 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=HDgwxbPG; arc=none smtp.remote-ip=95.215.58.249 X-Received: from mta1.migadu.com (out-249.mta1.migadu.com [95.215.58.249]) (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 072AF606A339 for <netdev@vger.kernel.org>; Thu, 26 Nov 2026 08:13:20 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 072AF606A339 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=TWd5PYsIUK42+eVyOks+ZcrzBLgJCP2EqIb2/tZIif4=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795680799; v=1; x=1796285599; b=HDgwxbPGV+SOoxUcQzUMVT9i3l1EcBh1rMtwVT0oMISsd3H3agHFXh+81KT9vrOxXdAPBtdR eUmihKIKfkAsS+QeYGTBfxZ2t8UaCZl8JE2yXizle+mREwib/eH+12RpT/7uGk0OwMN2umtg3LI M3ix4aaPd8vorYG9hnGD+Y18= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta11.migadu.com with ESMTPS id 3b2fb38026ca545c; Thu, 26 Nov 2026 08:13:18 +0000 X-Mizu-Trace-ID: 3b2fb38026ca545c 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-5-yanhaishuang@cmss.chinamobile.com> X-Received-Bytes: 10244