🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6271

Re: [PATCH net] ppp: linearize bridged packets when required

#6271
From: Qingfang Deng
Date: Thu, 22 Oct 2026 02:18
21 lines
9788 bytes
On 2026/10/22 1:55, Eric Dumazet wrote:
>> What about NETIF_F_FRAGLIST?
> I do not see your point. Can you elaborate?
>
> There’s also nothing left to gain on fraglist packets.
>
> SKB_GSO_FRAGLIST packets already go through skb_segment_list(),
> which just unchains the original skbs without copying, as the fraglist
> test run showed.
>
> Frag_list skbs that aren’t fraglist GRO go through skb_segment(),
> which with NETIF_F_SG already shares the pages of the chained skbs
> instead of copying them.

I've run selftests and confirmed that NETIF_F_FRAGLIST is unnecessary here.

One extra finding: passing NETIF_F_SG conditionally can avoid an extra 
reallocation in skb_linearize().

segs = skb_gso_segment(skb, chan->direct_xmit ? NETIF_F_SG : 0);
Technical Details
Message-ID: <b3091ab0-0e1b-4835-ae36-14978af46fa3@linux.dev>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350349-linux-kernel-netdev=dewy.ru
References: <20261021023608.55867-1-qingfang.deng@linux.dev> <179255036282.3290.8488375760281728576@kernel.org> <c0f348bf-0e13-4cb1-8014-cd9b7787bfe6@linux.dev> <CAL4WiirRPnbSBgcoh8Aiq8zGVzsy34w9uaqAgSKQwpgJ0ht7aA@mail.gmail.com> <315a8794-db40-4d0f-9e4c-0cad66174bff@linux.dev> <CAL4WiiouaJ5QU24uKt=CuxpfgHmWHS5oxoE2E_C6KFCLbDh0+w@mail.gmail.com> <51ccddcc-53b0-47cd-9526-ccd825f0f6d9@linux.dev> <CAL4Wiip2F59XO3BrjUHVrFqYMuD-LxNmZXhtftkV-JG0Ya84Yg@mail.gmail.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-350349-linux-kernel-netdev=dewy.ru
From: qingfang.deng@linux.dev (Qingfang Deng)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] ppp: linearize bridged packets when required
Date: Thu, 22 Oct 2026 10:18:12 +0800
Organization: Usenet Network
Message-ID: <b3091ab0-0e1b-4835-ae36-14978af46fa3@linux.dev>
References: <20261021023608.55867-1-qingfang.deng@linux.dev>
 <179255036282.3290.8488375760281728576@kernel.org>
 <c0f348bf-0e13-4cb1-8014-cd9b7787bfe6@linux.dev>
 <CAL4WiirRPnbSBgcoh8Aiq8zGVzsy34w9uaqAgSKQwpgJ0ht7aA@mail.gmail.com>
 <315a8794-db40-4d0f-9e4c-0cad66174bff@linux.dev>
 <CAL4WiiouaJ5QU24uKt=CuxpfgHmWHS5oxoE2E_C6KFCLbDh0+w@mail.gmail.com>
 <51ccddcc-53b0-47cd-9526-ccd825f0f6d9@linux.dev>
 <CAL4Wiip2F59XO3BrjUHVrFqYMuD-LxNmZXhtftkV-JG0Ya84Yg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="111740"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Tso4UV36WzrIh+6/KPZmZRn+JWg= sha256:WS8uydHUWs1vaLHWaP7mBKN9/z4JtQ/14wpbLV9zvk8=
	sha1:npeEsv3wD0HtixBcHyef8azgP28= sha256:d/zLSr3dFmx5c2P1nyGdh1aepVeWAt7yua4hJcQE15c=
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 E777A111184; Thu, 22 Oct 2026 05:21:50 +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.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-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 P8pwWuDajf_T;
	Thu, 22 Oct 2026 05:21:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350349-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 7F541111167; Thu, 22 Oct 2026 05:21:38 +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 C927E3D265; Thu, 22 Oct 2026 02:18:40 +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=1792635520;
	b=UvEmE6evNA5IXrCKZ+hcopAX/SoBVKXbiGYrOO10Mj1Beq76RJ8P7XyWCHJxnp5lx36G
	 jbkC1L2wNnDPNIa2Hja1CP2RlWTHMn65MBJ/Jd3tZ0dVK/mMI4yNiA9nKA57cCuEJYWwF
	 a6DbqdM9y2XRr9GFAa7Sx3UNhxC+o0W6nc+6tNV1T0T2SEQRdpReDwbsRzgIZkYNfpOxk
	 IkG70nSM5nGp5I+pQfjV7WntDGQpdCLiUi/LHamoW4mAEBvalRnTaK0Pizx282RsUz0JJ
	 mhJAAJMwigUlNm/KmLhudbL3+wa0DdEeyNK5Gw/XPxLy0FTQeVQfYGN+xgt1WS6HJGA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792635520;
	h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature:
	 X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:To:Cc:References:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=V/bK1oHMn1rt+dKdcCYOSmcwkHw/5HHuvQOfHL/lIbY=;
	b=AgD7LlEYi+c3/KEXEIvkeT9Ewsv6ZKUuT0ZpWNpo2YzfBUJqGGdA+0HMvfEHJu1OOvqt
	 wjkzku9O2ELg7WaYcZVNa8X/R/2k56paQs6qFh3mibrj9Uwww8yYDZfWcm6joLwsdMFO1
	 w0gxCWaoHUH8jW6VbsJy6J4QxyZ0/oBtbEN+ZUf3jEsrMZcfjOIKsJcc870L/PjE2/W83
	 Rv7GuO94PvkFyQ5i86Jxl9yGe7p9VhKP5EExB7+x33Havp48ZbcwfnPWRXKRwEQE/p7Zi
	 EeBgzFAsaGICcelnUYPELzQw4LITBHD2CpjEq8TKxJ4XH/Icual4HbHHjd6FkJmIH1g==
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=HgAXSlwc;
	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 9EC96606A320;
	Thu, 22 Oct 2026 02:18:40 +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=HgAXSlwc
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.110
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792635519;
	b=hH+81fk2xcR3LAMNgVc1XUy9JWSza+sYg5iXVhYTQVuNHg+smbqaWuWBC3XJlxTz8XyP
	 8vh9Ra+R3RcgeeV10hBElKvhLIe8Uz2geRhJRsTS3orhJx0p/zXqLe2xWApM6ABv3JiY7
	 U1grw34u+3KDwIIc8jhfD5VfpVyk6g8vkY1PzgX2N7y4WRJ/Jt26orL1vUMrv9vKof+Cs
	 kfN1okfjNeE5eTfUQCgI+4ZiAev8f7NKWzc8YtphKsFZXLx9y/192w1kgqF82Imc/i/zP
	 pkmGoaL4nnidAF1URVs1yPzQOhtbMekkYMA0CzsO4omdyT4SZlF7BCMGWjdhAazxUXQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792635519;
	h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received:
	 X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:To:Cc:References:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=V/bK1oHMn1rt+dKdcCYOSmcwkHw/5HHuvQOfHL/lIbY=;
	b=x6aCG3S57sdKhKRMAJY+c9qaSX9t3W+I2VREJvXClFM2PJj4I1bJw+GjtSJ/shQO8NT+
	 G/gIN9jYUDcPtLE45FSErfDK6ucb3jYQ2Kx09Kx709xUBtz0nTm7uEaQ+WIdoLup5PnbS
	 9DFs34zYOEgiepQ6TAzWG9nhVCIwH8KhI4PnY3cT4nW2OC7dnJhVDzWSQ8TK5BKEQyYzz
	 KGHsErjGY2hW0+IiBrAMIo4RJyQmp3kSCpEr4wtb5nTj2PkLHuEsb5Nj/UgTD8MIDUOKE
	 EVU5t70AZbPsIx+CnAsSokz/CEyj2pRaN3iEiUmXZGzyBXZhAxB//o0CXee0ag+n1Rg==
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=HgAXSlwc;
	arc=none smtp.remote-ip=91.218.175.110
X-Received: from mta0.migadu.com (out-110.mta0.migadu.com [91.218.175.110])
	(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 7AE3C606A337
	for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 02:18:25 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7AE3C606A337
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=ooqyk9o6+mpPrkv3GOQDSDUiZawfX8BzqiIhm5l6pnQ=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1792635503; v=1; x=1793240303;
 b=HgAXSlwchmv9Y+9KUXMqqEP/X3dvSR4dnagDzZyQV+xIkneaqn9/Mevv0XToW189HH8UMw4d
 w5SpfGVvRFduIkWS3FUDNKxEK/i3LgWWusv1sAwtkoB6kl9DTC5Pl7hweELWfDiPGfZMuJ/WePj
 BurxRwlRCGPDBb0udenPRyrs=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by smtp.migadu.com with ESMTPS id e1ec92438c6690db;
	Thu, 22 Oct 2026 02:18:23 +0000
X-Mizu-Trace-ID: e1ec92438c6690db
X-Migadu-Flow: FLOW_OUT
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-User-Agent: Mozilla Thunderbird
X-Cc: netdev-bot+sinfo@kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>,
 "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>,
 Paolo Abeni <pabeni@redhat.com>, Breno Leitao <leitao@debian.org>,
 Kees Cook <kees@kernel.org>, Taegu Ha <hataegu0826@gmail.com>,
 Tom Parkin <tparkin@katalix.com>, linux-ppp@vger.kernel.org,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
 James Chapman <jchapman@katalix.com>, Sashiko <sashiko-bot@kernel.org>,
 Felix Fietkau <nbd@nbd.name>, Pablo Neira Ayuso <pablo@netfilter.org>
X-In-Reply-To: <CAL4Wiip2F59XO3BrjUHVrFqYMuD-LxNmZXhtftkV-JG0Ya84Yg@mail.gmail.com>