🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25240

Re: [PATCH net 2/4] net: add netif_disable_subqueue()

#25240
From: Simon Horman
Date: Tue, 01 Dec 2026 12:40
37 lines
9313 bytes
On Tue, Nov 24, 2026 at 09:43:10AM -0800, Dimitri Daskalakis wrote:
> On 11/24/26 4:33 AM, netdev-bot+sashiko@kernel.org wrote:

...

> > [Severity: Low]
> > This isn't a bug, but the commit message only talks about adding a new
> > helper:
> > 
> >   Add a helper like netif_tx_disable() (which drivers commonly use
> >   when stopping the interface) but for one queue.
> > 
> > It doesn't say that netif_tx_disable() itself is rewritten here.
> > 
> > The old body disabled BH once, read smp_processor_id() once, and used
> > __netif_tx_lock(txq, cpu) for each queue. The new body uses
> > spin_lock_bh(&dev->tx_global_lock) and calls netif_disable_subqueue()
> > for each queue. That helper does its own nested
> > __netif_tx_lock_bh()/__netif_tx_unlock_bh(), and it takes the queue
> > index as u16 rather than the unsigned int loop counter.
> > 
> > As far as I can tell the behavior is unchanged. Still, every driver
> > calling netif_tx_disable() on its stop path picks up this change.
> > 
> > Could the commit log mention the conversion? Something like "Convert
> > netif_tx_disable() to use the new helper, no functional change
> > intended." would be enough.
> > 
> 
> If this series needs a re-spin, I'll address the change in the commit msg.

TBH, I think the commit message is completely fine as-is.
It states the intent of the patch. And the implementation details
are clear enough on examination of the code.

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261201124058.GY804035@horms.kernel.org>
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-375029-linux-kernel-netdev=dewy.ru
References: <20261121033215.1020506-3-dimitri.daskalakis1@gmail.com> <179552362454.3135.13950803840518714648@kernel.org> <78dbd822-291c-490d-9f4f-15de0b44de78@gmail.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-375029-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 2/4] net: add netif_disable_subqueue()
Date: Tue, 1 Dec 2026 12:40:58 +0000
Organization: Usenet Network
Message-ID: <20261201124058.GY804035@horms.kernel.org>
References: <20261121033215.1020506-3-dimitri.daskalakis1@gmail.com>
 <179552362454.3135.13950803840518714648@kernel.org>
 <78dbd822-291c-490d-9f4f-15de0b44de78@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1710828"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:NzZUujwNDYv9EfbTnYBpsNshf7Q= sha256:NEbUl+ZjQIIdmLlq6PXDs/shTKQMtifZ1M1hWBhsrn8=
	sha1:ko1pAxgDAn8gGdayQSk/kKPSLts= sha256:WZ47BacOAgSCn7f6CparnwL2jRN4dRUw12nBazJyN3o=
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 39812117380; Tue,  1 Dec 2026 15:41:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	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 (2048-bit key)
	header.d=kernel.org
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 oYGERBK9dcqb;
	Tue,  1 Dec 2026 15:41:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375029-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id C62DB117378; Tue,  1 Dec 2026 15:41:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 0C3C02786C; Tue,  1 Dec 2026 12:41:08 +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=1796128865;
	b=XB8A1kPlx99FmXTIkv6jDV9fu/vEelTbDX4A+5DxVar7oq8uPPuKKVApJe1SWsLMQtIV
	 bRBb1S5O9RsjNU21ae1LWll64gNIxYmzQBg0HhS+ZUSbbNmXKDsg5uK5QhgzwxwFGXw9j
	 gx8unnmpdqHZVbxqr7p6ScJNuykrpB4RjWFTpwu0Ot84ngFXmklanYVGXe1p0eUSc5Evj
	 KdQqmamALl9nXkjiE19CtOiOe28WvHGyyPCUMA2N6ZqxhfFGHjQc2ushuQs5t/rg0358x
	 HSOzn6nRVHfW9sENBf9RfN60HxjebSWlxuTOfuH6P2CadaaOk5XhwWCDdj6C5iddyIw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796128865;
	h=X-Original-To:Received:Received:DKIM-Signature: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=uCdmvCHGGDCuozOCUs4y/NsM4VdLcva/p6Eef2c005c=;
	b=JkVHdUiw1vSBhWv4HLf7K8zy/9SSZ/hMqTTA/5q9j4223zQPKhauVPOVmHZ23xeneq60
	 As33z/B0VmznO5dJxh3DFE0kfquryJVm7Ufa00JoMhxeUAZiod56fp0ri+yDmKYtG3dRY
	 clrkq1G8huFIM4dGMGIHMnSqEhtXeLUjhN8SBKxtulgZtLPelrBQMhLL75wR9nMeGNdYn
	 lQq3/Sl7LiEMNWA+mT9jTPO21z0qqfK2KQKSYrzUA/54UEsuvnd5k/2CxlOBV7A74ev1K
	 6ogIu0UXH4T8tEFgj0iqiL0wocOwn1MY/CuqZF99rEt2RFrJR/XeeFOCm5Z2c42G/nA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dJcNIeIK;
	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 E6BB6606A331;
	Tue,  1 Dec 2026 12:41:04 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dJcNIeIK
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796128864;
	b=P8ndwhIVTBqfyiV4dOxC2xJs+PbShpznLzO5IIJlJ67BCPtWTnrIoqFx/MmRZHlflJCW
	 7YMFMFV1Rak9qxntsVGjdqAtSmD6jpibT55jvpeOKLZ8Wwug1GVKTuC0cnGuwUR7wrR7s
	 MOvC278iHVcQoehiU0mZxXii2+GYxfqsZF5NUWTz0hWc3wxRpqwkuEkG3RBE/EEmF1yQm
	 /l5wlx++BKE3U8lFgZwi76jV2KU25eC9tH7sg1ysBGw40dO/EL8Ow/hsD9Li6cGlteq8L
	 jN2BsLNLis7SPFai/EO5qNttJnbd9Qncwhp0P9W+lMHWq17xPdJgarATdLaERF+QYmQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796128864;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=uCdmvCHGGDCuozOCUs4y/NsM4VdLcva/p6Eef2c005c=;
	b=qKSVP7jU9CWMTCNEANf9HXJQpRn88Q2ro9wrp0zM3n4MGxa4pL8NFo732vJwndgDTWck
	 V7T+eX3Aeo6iNl3ms6uJMqZ8Bd+EEIj0hmiSMqQ6GN4N86tqIvAuWuXFEQHKJDzVJjNym
	 5wRsIsLLf2bJG/MJAGnk4Vq9Ke6tlh3rH2DaPphoRfcLHUGZzOgBNpSH+oCk+Jsrm28wE
	 ccECdTXuuRugufW+qRxVvRQ1n/E7PSerjwK5xyp14lKokPdlFL1jdjt5Jcuqb0kURVWc3
	 3FVKcP9ynNWF/r1eXn477+snOKTyq6FeTk7MV2E+oLv/Vl4SAIHGQoRLZjXFCZnKhrA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dJcNIeIK;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F702606A31A
	for <netdev@vger.kernel.org>; Tue,  1 Dec 2026 12:41:04 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DCFE1F00897;
	Tue,  1 Dec 2026 12:41:00 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796128863;
	bh=uCdmvCHGGDCuozOCUs4y/NsM4VdLcva/p6Eef2c005c=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=dJcNIeIKZV5j/chlKfVRpOyMzcI6BeQvT+oOlSujX+t9HRiETpNd5Lh7IR8QgS9Qx
	 zdyFdeKB3cR1mA78EwT7cT1fVKyn9SDG4QQxccEP0m42nnffNCGKcEvseWLf9xburO
	 I0p6t4cwqlUB6Ymbe+9m1eAX1OYTDHvJaB1GtWtEP4xNtR4j65DG8jPVk80Z45Lbz/
	 bZEgyZVKu8bySWFLwGI/uyGEE6jaKlvP0mU6F3X4iQ2c+HNjlcMqYnnXEeEMAqyE3O
	 DoemWl91P0HNHlSdHAhXUSo88czTO+9uH1ADddOHno1JfY977aDBisMIS7aWq8QJJ1
	 gxdrhTITU1Gfw==
X-Cc: netdev-bot+sashiko@kernel.org, davem@davemloft.net,
	alexanderduyck@fb.com, kuba@kernel.org, kernel-team@meta.com,
	andrew+netdev@lunn.ch, edumazet@kernel.org, pabeni@redhat.com,
	willemb@google.com, bjorn@kernel.org, bobbyeshleman@meta.com,
	almasrymina@google.com, daskald@meta.com, netdev@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: <78dbd822-291c-490d-9f4f-15de0b44de78@gmail.com>