All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hangbin Liu <hangbin.liu@linux.dev>
To: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
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
Subject: Re: [PATCH net-next v2 4/6] ip6_tunnel: Enable BIG TCP packets
Date: Thu, 26 Nov 2026 16:13:11 +0800	[thread overview]
Message-ID: <20261126081311.GF33976@Liu-laptop> (raw)
In-Reply-To: <20261126025015.10416-5-yanhaishuang@cmss.chinamobile.com>

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>

  reply	other threads:[~2026-11-26  8:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  2:50 [PATCH net-next v2 0/6] ip tunnels: Enable BIG TCP packets Haishuang Yan
2026-11-26  2:50 ` [PATCH net-next v2 1/6] ipip: " Haishuang Yan
2026-11-26  8:06   ` Hangbin Liu
2026-11-26  2:50 ` [PATCH net-next v2 2/6] gre: " Haishuang Yan
2026-11-26  8:12   ` Hangbin Liu
2026-11-26  2:50 ` [PATCH net-next v2 3/6] sit: " Haishuang Yan
2026-11-26  8:12   ` Hangbin Liu
2026-11-26  2:50 ` [PATCH net-next v2 4/6] ip6_tunnel: " Haishuang Yan
2026-11-26  8:13   ` Hangbin Liu [this message]
2026-11-26  2:50 ` [PATCH net-next v2 5/6] ip6_gre: " Haishuang Yan
2026-11-26  8:13   ` Hangbin Liu
2026-11-26  2:50 ` [PATCH net-next v2 6/6] selftests: net: big_tcp_tunnels: Cover IP tunnels Haishuang Yan
2026-11-27  2:30   ` Hangbin Liu
2026-12-02  3:10 ` [PATCH net-next v2 0/6] ip tunnels: Enable BIG TCP packets patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126081311.GF33976@Liu-laptop \
    --to=hangbin.liu@linux.dev \
    --cc=alice.kernel@fastmail.im \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=lorenzo.bianconi@oss.qualcomm.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --cc=yanhaishuang@cmss.chinamobile.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.