Article View: linux.kernel.netdev
Article #22952Re: [PATCH net-next v2 3/6] sit: Enable BIG TCP packets
From: Hangbin Liu
Date: Thu, 26 Nov 2026 08:12
Date: Thu, 26 Nov 2026 08:12
51 lines
10513 bytes
10513 bytes
On Wed, Nov 25, 2026 at 06:50:12PM -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. sit can carry BIG TCP packets as well: the outer IPv4
> header gets its total length from iph_set_totlen() on output, the GSO
> path already handles BIG TCP, 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 sit. The default gso_max_size and gso_ipv4_max_size stay at 64KB,
> so nothing changes unless they are raised explicitly.
>
> iperf3 TCP over sit 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 65536: 96.0, 95.4, 98.0 Gbit/s
> gso_max_size 196608: 136.9, 131.0, 129.8 Gbit/s (+37%)
>
> On the receive side, GRO does not build sit packets larger than 64KB, so
> the gain comes from the sender when the underlay offloads GSO.
>
> A later patch in this series extends big_tcp_tunnels.sh to cover sit
> 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/sit.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
> index a7ec800216a..97044b1cad2 100644
> --- a/net/ipv6/sit.c
> +++ b/net/ipv6/sit.c
> @@ -1577,6 +1577,7 @@ static void ipip6_tunnel_setup(struct net_device *dev)
> dev->max_mtu = IP6_MAX_MTU - t_hlen;
> dev->flags = IFF_NOARP;
> netif_keep_dst(dev);
> + netif_set_tso_max_size(dev, GSO_MAX_SIZE);
> dev->addr_len = 4;
> dev->lltx = true;
> dev->features |= SIT_FEATURES;
> --
> 2.43.0
>
>
>
Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Technical Details
Message-ID:
<20261126081228.GE33976@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-371940-linux-kernel-netdev=dewy.ruReferences:
<20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> <20261126025015.10416-4-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-371940-linux-kernel-netdev=dewy.ru From: hangbin.liu@linux.dev (Hangbin Liu) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 3/6] sit: Enable BIG TCP packets Date: Thu, 26 Nov 2026 16:12:28 +0800 Organization: Usenet Network Message-ID: <20261126081228.GE33976@Liu-laptop> References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> <20261126025015.10416-4-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="413946"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:SfrlJi4ENb+qX0h5NZV4Lyo4Nd4= sha256:Dz0sO0AT0Fjiw8q4hKqmw2apBIX+JDZqeu4UW4ew2Lw= sha1:U0QX8sYAK8TWAfr4ye+Q1zTQWHU= sha256:fkl/SoLGo6I3GLs25c5LxkMNgwYwzC+GAUf3OHid0yo= 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 AA292125EB4; Thu, 26 Nov 2026 11:12:52 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 2TUZRZkQKOwT; Thu, 26 Nov 2026 11:12:50 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371940-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id A4723125EB3; Thu, 26 Nov 2026 11:12:41 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 5B4F0424ED; Thu, 26 Nov 2026 08:12:39 +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=1795680759; b=YagpWhjBCswrhj/5OtbmXdxC3aMUrIXgNB0wqiDlCjvxu9+jieCuWsyQuS5ENFVdjKBH bsvxOsTQAWOtV6wQg416u62enOVktK5gluEPFyrPW3maso25HUsvigM77pWJZwlvSr/bE g2wdrNDkGSQtzAI/gaJ9+X9egw0s+ztZIqIOAHsC5r5ZVHy1RmQxwl1ubeQBd61afNgJj 42EUYWCQWDMKM3loaZ64QXlMc3v+fZW9Jk5tphB5cvxg16aRMH3LIroRFRZ/C4Yri3Oeh /JJBvDw92tVaY+BoPStsy6LwCv2CVi5DkAuzP+sJgqQ2KcHlvppDelXuSJzXgspoz4g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795680759; 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=rLPkJUAGEWARQ2dIgwe2dGKd/2F+KCnofuKYobrMgA4=; b=bUWrAki92EXj+twWjgMfnR0OT7VbI/Bk+lxIKVZr2csBtR7X6NMk1hwSPDB4yawLomvg pyybryxwUGHFWTDk4ZeKf+8nyfAUGPY7UOGWzHNO51BZ9fpf/Yn1Q3Eol39xShWLM9laX ltgRMHu6zjbUYwhQ3gLt4ekeMnsZ+rCe24wzFdVu9iQkH/AUBbFn4aKzKZSgzAzZ1/f6Z /kSqNxDiM47rUmRwRg3G9LVW4Xp3YYBla+FdgvV30LqOwy2hnNNX2S1Kj/wUZT/Ai8y/b huAwomYviZvuPNzYGYvlMQAxwfetEBle3J1gomZ95vTTx5abhBPS41ScRvlC3pshntg== 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=kwxOEwQ1; 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 DF01B606A332; Thu, 26 Nov 2026 08:12:38 +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=kwxOEwQ1 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.52 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795680758; b=3avp8vUy7EzIBof+UpIj4uVa86HRSIKJhlJ+LSm583RqJalS7+bP3rJyMT8k1AWp8yIx 4LqEJo3gzQESceMPZZ8JTUbEyqTCul/7B/R6Ta73lAiZpLasO9xFURSXjA46BzXFWAcnB 3DJkniBwkraDAbsAWWCwTwFM8v866OBJHfuLZtDyHyxtLch41Kcv7LMZ99Cf8RhYmJzRb s5fJSNoKDj53MIeg9Qi5Hv5GcKADl/orAVtKEuUR6g+c0sH3EzYbwdc+v6/I36WWjI5bT G7hZRXX7/MauwueffZdgIAG8iGI6fgHISgtUTnHeI6E1xz/runCG08gP2+38Hent2eA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795680758; 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=rLPkJUAGEWARQ2dIgwe2dGKd/2F+KCnofuKYobrMgA4=; b=dR8qHYUPDRLNtdOii2w6VPFw3LYWzEOP3xs3DSvmL44gc+1EvUDIXW2FuU1Lc+vcXO4k +AiUr9v3yd9I6UtivMkMS9Gzwh23qNf0y6OQAy2Ur+F2svZYUqQK0lSuotYmztRtsJn0+ 1yrT62DtuJHR4hEc7l3GDLZFVI30/9v/cnH+2GY2NpBzLZWeutCCWXDvR9N1JxYcqtj4G kGGmwM/1Ux1dPKmPgHG9rpC/BpaQga4fFvXWqO3mr1uVNkZ/QjYQjAN9tPJrpagN0c1nV stAkxKOI/61ofQkoxyr++SUWT3dKmq7oPYC3ehaD9oZKemWWSA7ZoNjn8JggtAlFS0Q== 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=kwxOEwQ1; arc=none smtp.remote-ip=91.218.175.52 X-Received: from mta0.migadu.com (out-52.mta0.migadu.com [91.218.175.52]) (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 66979606A31C for <netdev@vger.kernel.org>; Thu, 26 Nov 2026 08:12:36 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 66979606A31C 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=SfcdMxFYA0q96NE83XCnix52dNJ48AiBhdfguxOC+wo=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795680755; v=1; x=1796285555; b=kwxOEwQ1KvbZ4Q8yWicro8AfcqCZFdNuyL7n3re1nfTIphr6XC3cncgHh8R2C4Z0EWbxUPiN w9KvPCCCQ0g7nn0LAupBYtrih6uTOkUvBizwa+f34cVTyLax5ES9ZnQmBg2kJJ0jrVZft8yGDB3 Xbp2L3zJfXRjio1XupZZ+xVw= X-Envelope-To: netdev@vger.kernel.org X-Received: by mta12.migadu.com with ESMTPS id 5eb27d89023d6b48; Thu, 26 Nov 2026 08:12:35 +0000 X-Mizu-Trace-ID: 5eb27d89023d6b48 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-4-yanhaishuang@cmss.chinamobile.com>