From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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 ; Tue, 1 Dec 2026 12:41:04 +0000 (UTC) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DCFE1F00897; Tue, 1 Dec 2026 12:41:00 +0000 (UTC) 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== Date: Tue, 1 Dec 2026 12:40:58 +0000 From: Simon Horman To: Dimitri Daskalakis 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 Subject: Re: [PATCH net 2/4] net: add netif_disable_subqueue() 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> 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: <78dbd822-291c-490d-9f4f-15de0b44de78@gmail.com> 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