From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.52 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== 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== 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 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 ; Thu, 26 Nov 2026 08:12:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 66979606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev 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-Envelope-To: netdev@vger.kernel.org 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 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 Date: Thu, 26 Nov 2026 16:12:28 +0800 From: Hangbin Liu To: Haishuang Yan Cc: netdev@vger.kernel.org, David Ahern , Ido Schimmel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Shuah Khan , Alice Mikityanska , Lorenzo Bianconi , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 3/6] sit: Enable BIG TCP packets Message-ID: <20261126081228.GE33976@Liu-laptop> References: <20261126025015.10416-1-yanhaishuang@cmss.chinamobile.com> <20261126025015.10416-4-yanhaishuang@cmss.chinamobile.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261126025015.10416-4-yanhaishuang@cmss.chinamobile.com> 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 > Signed-off-by: Haishuang Yan > --- > 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