🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25302

Re: [PATCH net v2 2/2] net: lapb: transmit frames outside the protocol lock

#25302
From: Martin Schiller
Date: Tue, 01 Dec 2026 13:40
21 lines
10491 bytes
On Tue, 01 Dec 2026 13:57:53 +0100, netdev-bot wrote:
> - [Medium] The patch adds lapb->tx_queue, a transmit FIFO with no length
>   limit, and drains it in a loop with no quota.

I agree, and I'd like to see this one addressed in a v3: the drain
should stop after a budget and reschedule itself, and tx_queue should
get a limit. Before this patch, each producer paid for its own
dev_queue_xmit(), and the lower device's qdisc bounded the backlog.
The three Low points look valid to me as well.

Apart from that, the direction looks right, and with the series on top
of the pending x25_kill_by_neigh() fix, an X.25 end-to-end test over two
lapbether devices on a veth pair passes with lockdep and without
warnings, including "ip link set lapb0 down".

For v3: the cover letter and the patches were again not threaded
together, as the mail server replaces the Message-IDs. Sending through
b4's web submission endpoint avoids that.

pw-bot: changes-requested
Technical Details
Message-ID: <f410efd2445c8073998972436082f102@dev.tdt.de>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375119-linux-kernel-netdev=dewy.ru
References: <tencent_13BADC934C9BDBCE7D204DEAA2DC1D403705@qq.com> <179612987367.3146.17593233623166891863@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375119-linux-kernel-netdev=dewy.ru
From: ms@dev.tdt.de (Martin Schiller)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 2/2] net: lapb: transmit frames outside the
 protocol lock
Date: Tue, 1 Dec 2026 14:40:19 +0100 (CET)
Organization: Usenet Network
Message-ID: <f410efd2445c8073998972436082f102@dev.tdt.de>
References: <tencent_13BADC934C9BDBCE7D204DEAA2DC1D403705@qq.com>
 <179612987367.3146.17593233623166891863@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1725026"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:CSrS+owlgHANcv0tBiZ9TpeyZ28= sha256:kIS6ULPGmfUdwbI49FyGyGyqYyjH9CVX/q4iKIq5Dfc=
	sha1:7d5UA02Qt52WRBQxbIMAzgHxzN0= sha256:AoJf0QDt0G4kjDY2zHvFWlGMCN4lGHPOk/uCJMVToM4=
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 1B1F91173C3; Tue,  1 Dec 2026 16:40:41 +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 (2048-bit key)
	header.d=dev.tdt.de
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 tYT_OLOSbcRN;
	Tue,  1 Dec 2026 16:40:38 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375119-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=dev.tdt.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 8A1DD1173BA; Tue,  1 Dec 2026 16:40:28 +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 3A091347F5; Tue,  1 Dec 2026 13:40:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1796132426;
	b=VdCqyiPc4q6u6phBx9+4EPaorO7Nc2NiZNJ45pib0UIAMHR26fupBNRXi4ZACbMRlPgi
	 y2DoDHQohNp9184nCz+C0aVdQpBkeBjN1OL1qS7SfbjVFNrMyvteER/AOpyu6Q/ntbmWV
	 F2+CRmYjPQ7nFY1BAKN9cwdruLks8eKvuB821uuK1hcP9ULUFzWL4lwdwuoW1PUiWPDDz
	 q3ClLhc0ad5q/76DYUo+SbrrMoVDuQmORCeMNBBvV8UryhLUFHtjifUUa2AE/qBj3LrM3
	 HIisqNH8x0YZ1c9NIK3EcTwgZ6BOPi72h1vs4lOdvCRJ2JYNpct+0jzY73E8xLrhG3A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796132426;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
	 Received:Received:Received:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Type:Content-Transfer-Encoding:Date:From:To:Cc:Subject:
	 Organization:In-Reply-To:References:Message-ID:X-Sender:User-Agent:
	 X-purgate:X-purgate-ID:X-purgate-type;
	bh=xpAx3h2mwU2j4GW9dIxz7pSCRRBdLRl9X46ZL4Vfgkg=;
	b=XhTB9qeSGWde+km2vhZfeakWVgEqYwfNISliDsksAaLYS99OIOHYwE9rXvaJ24RG/N+0
	 +KN6QgvxPGBiZEBQVpUc4VosM9rZam5CtshSBsJz1NzdCfnDcDbE0R+oeV6bOvHc8pX/p
	 0Xsbu0O5wKKra4ZP/F4O2411pegaaCc4s9bNvW/BavBbLCNVm+/YBnOaSi3yLUUAfgd40
	 7KkP+pDoHijPYu4o3qCHq3WzVgBZRjAUs9OWwmTtTUo2JHhyY7V9fVHouuA2cdawxOPd1
	 yb01irNXxaLuSpEeGnMS5q+YlOeIlG6pG0NmExwEiyUKQdjREE5vi1J/9QXU6+B4vmA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=dev.tdt.de header.i=@dev.tdt.de header.a=rsa-sha256 header.s=z1-selector1 header.b=resw9CDc;
	dmarc=pass header.from=dev.tdt.de;
	spf=pass smtp.mailfrom=dev.tdt.de;
	arc=fail 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 0C61A606A333;
	Tue,  1 Dec 2026 13:40:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.a=rsa-sha256 header.s=z1-selector1 header.b=resw9CDc
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.198.224.70
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796132425;
	b=O6OGGhA6ApxlO4B+S3x9A9QJgihug0RSWzg8cOC3bgQvBwMEaUveW0c6x4dXqbCj1xSo
	 m4shWUJS+chUYfzSlftRxPqWpQys8tWDZfi7+neCPhXGjXH/qBsWMAFbE48uRxFEHPPnw
	 SYzgZtBDpW8+XadgXqRROvKj4RgUlj6CKDEskhWShOAsM0gyjjV1DsnumXUqDv3lZEbHm
	 emJkvxadrhLZQjk23k9KMsSANJCJfXVDZnv48+ZtRaDUcQF4+DRxONQNT2tz9QhBetE5Z
	 3Ew7ED6iW/eilRS1gKs1ryn3EmKxrRd39dzMToOoSOjmc1iedU/gyPxlQMS0gpXhm4g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796132425;
	h=DMARC-Filter:Received:Received:DKIM-Signature:Received:Received:
	 Received:MIME-Version:Content-Type:Content-Transfer-Encoding:Date:
	 From:To:Cc:Subject:Organization:In-Reply-To:References:Message-ID:
	 X-Sender:User-Agent:X-Spam-Status:X-Spam-Checker-Version:X-purgate:
	 X-purgate-ID:X-purgate-type;
	bh=xpAx3h2mwU2j4GW9dIxz7pSCRRBdLRl9X46ZL4Vfgkg=;
	b=mD4uRYuhKdfbaeCjS37cwEcDNxgjBeT3No8EphyvKzbEXUbhMEnN8CQ1xgnw+owhPQXc
	 1Mqso9GBGUEUSic4m8Myc0qvvOKasJ2smCi8BNcUxD5iOukwfEigSc0pQPLFufSD9jklk
	 HGgk5KDE8B2RE42Vsl43gijy6j2g83L5QROGeK46qOBJDAtBr1HikHqRGXQ2ys0o356kV
	 Y+rYTwl32zvswZc8nWVYwmkcUN6ZO5ScjcR3eJTY6ooMCISW8USjj4fm+4m6d5pL0ref7
	 WMl5kQZVAlQNPo+IbcetX6gj9o7judbL0dw6n3LG6iKANHRuDgLMrV6Q/2iygUrJZ1g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=dev.tdt.de;
	spf=pass smtp.mailfrom=dev.tdt.de;
	dkim=pass header.d=dev.tdt.de header.i=@dev.tdt.de header.a=rsa-sha256 header.s=z1-selector1 header.b=resw9CDc;
	arc=none smtp.remote-ip=91.198.224.70
X-Received: from mxout70.expurgate.net (mxout70.expurgate.net [91.198.224.70])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8318606A33C;
	Tue,  1 Dec 2026 13:40:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A8318606A33C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev.tdt.de
X-Received: from [194.37.255.9] (helo=mxout.expurgate.net)
	by relay.expurgate.net with smtp (Exim 4.92)
	(envelope-from <prvs=6809d4f748=ms@dev.tdt.de>)
	id 1xYO5l-004WBE-2l; Tue, 01 Dec 2026 14:40:21 +0100
X-Received: from [195.243.126.94] (helo=securemail.tdt.de)
	by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <ms@dev.tdt.de>)
	id 1xYO5k-002lbQ-Ac; Tue, 01 Dec 2026 14:40:20 +0100
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev.tdt.de;
	s=z1-selector1; t=1796132419;
	bh=xpAx3h2mwU2j4GW9dIxz7pSCRRBdLRl9X46ZL4Vfgkg=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References:From;
	b=resw9CDc+y10HXDVQM69yNh9Q/mGHYAfTBNBrdjdCuqrDKOPQ+ATLxNzJAIf2Fjyw
	 8K0c0JlFxjDy6TawcIkSAW9jJ9BFncBK2omgq10X6C43J0tUofI89CmNAlhLXwK3mN
	 hOeqFKxe3PcCh0672u2Oq2eUxzwy55JxFbPsZYc6MidgM/czD0vRemCCz6j8Tp+goE
	 KcsryiwVpc5Gdfm6oz6z0TEqj4nHjrdVNdrZM6be4NB5U9iE4KRtFDmGVQBs5eJc62
	 3vW+PS1LtLHVyB2cPb6QwiHO+cvR/eILw3eXSLgmGRSjZbGcQuGADGasFTKn+rqzea
	 ZwUzDm/SK04Zw==
X-Received: from securemail.tdt.de (localhost [127.0.0.1])
	by securemail.tdt.de (Postfix) with ESMTP id B6ABE240042;
	Tue,  1 Dec 2026 14:40:19 +0100 (CET)
X-Received: from mail.dev.tdt.de (unknown [10.2.4.42])
	by securemail.tdt.de (Postfix) with ESMTP id A5593240040;
	Tue,  1 Dec 2026 14:40:19 +0100 (CET)
X-Received: from mail.dev.tdt.de (localhost [IPv6:::1])
	by mail.dev.tdt.de (Postfix) with ESMTP id 72C3A2B3A5;
	Tue,  1 Dec 2026 14:40:19 +0100 (CET)
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-Cc: netdev@vger.kernel.org,
	syzbot+8328573e4d0514392471@syzkaller.appspotmail.com,
	edumazet@kernel.org, horms@kernel.org, linux-x25@vger.kernel.org,
	pabeni@redhat.com, davem@davemloft.net, kuba@kernel.org,
	andrew+netdev@lunn.ch, hdanton@sina.com, willemb@google.com,
	xie.he.0141@gmail.com,
	syzbot+059a2795ad4cff2a2695@syzkaller.appspotmail.com,
	netdev-bot+sashiko@kernel.org
X-Organization: TDT AG
X-In-Reply-To: <179612987367.3146.17593233623166891863@kernel.org>
X-Sender: ms@dev.tdt.de
X-User-Agent: Roundcube Webmail/1.3.17
X-purgate: clean
X-purgate-ID: 151534::1796132420-CCF6CE18-EF0415C6/0/0
X-purgate-type: clean