🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18521

Re: [PATCH net v2 1/5] eth: fbnic: wait on the correct queues in fbnic_queue_stop()

#18521
From: Björn Töpel
Date: Wed, 18 Nov 2026 13:13
23 lines
9140 bytes
Dimitri Daskalakis <dimitri.daskalakis1@gmail.com> writes:

> From: Dimitri Daskalakis <daskald@meta.com>
>
> fbnic_queue_stop() waits for every queue of the NAPI vector to go idle
> before tearing it down, using sub0.q_idx as the queue index. We set
> q_idx on submission queues for Tx, and completion queues on Rx, so
> this waits on queue 0 for every Rx queue.
>
> For non-combined channels, stopping an Rx queue always stops/wakes
> Tx queue 0.
>
> Set the queue id on Tx completion rings so we don't have to distinguish
> between ring types to get the correct queue id, and don't stop/wake
> disabled rings.
>
> This bug was found by AI and verified on HW.

The LLMs I run complained about this as well -- nice to see it verified
on HW. Also, this fix is much cleaner than what my clanker suggested!

Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID: <874ide8eq3.fsf@all.your.base.are.belong.to.us>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366134-linux-kernel-netdev=dewy.ru
References: <20261117215416.1901246-1-dimitri.daskalakis1@gmail.com> <20261117215416.1901246-2-dimitri.daskalakis1@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366134-linux-kernel-netdev=dewy.ru
From: bjorn@kernel.org (Björn Töpel)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 1/5] eth: fbnic: wait on the correct queues in
 fbnic_queue_stop()
Date: Wed, 18 Nov 2026 14:13:24 +0100
Organization: Usenet Network
Message-ID: <874ide8eq3.fsf@all.your.base.are.belong.to.us>
References: <20261117215416.1901246-1-dimitri.daskalakis1@gmail.com>
 <20261117215416.1901246-2-dimitri.daskalakis1@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="2601115"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:CYmxn8DXF7rqXwNDIqpGQVFGJR4= sha256:kx/NpAIhfxrNSnSqjyJWxbwaix6oVdEZaiFamrtIoAY=
	sha1:maq0ApO4aYry2rb038Gdt7xg7QE= sha256:Yea9BbWp2V4F5yWaFyZODBl07CaYCB/rPOTyT0ZjvjE=
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 144EA1152A7; Wed, 18 Nov 2026 16:13:49 +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 siQtB6qplhCg;
	Wed, 18 Nov 2026 16:13:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-366134-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id BA3B01152A3; Wed, 18 Nov 2026 16:13:37 +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 B44F92B94C; Wed, 18 Nov 2026 13:13:34 +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=1795007614;
	b=bZqFQt1h0oA8jo9dytYkgx13TSQou2oniyGveXBB2iTTh53LKPR0HIZ92LzpIqw/PleB
	 3myLRMZl1DxkIIm18pLLAUP63K1zPhi0/it2+Ioa/jNN1McvzrDpx5WmKdt2z78arrVC/
	 1WuD0l/MkpkJu1Of6E7KvWXXeZZvXpbsfrCMVesksE9zwG7SemPdZfC0Rdz04PXb3w0y3
	 qWTF6X8qirFZ1OB17TQq2vkEWiJUMUPHk8+gr0w3nciihIvMJMfanpfqfHz6l8hNqLIQf
	 OhnvEM34QPDOkcwNqScSXFvdxgDefHCPFTZjwIJj4MhOYUyAe1/P7MdOHJvWOBtqG4g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795007614;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject:
	 In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=v7CzwBI9qtFWKPM2/kfPZOOMtSQs3ZKi6kkd05xq81E=;
	b=yEc0lSvvHn2aLnXFK6oHlsJtgPbsjeld4DRQzouxm7aKJRquqs6kmX4BKzVzRe0g9SE0
	 uWQdzAFcHSgT1NUWEsjoxBKHW2mCMmUDreU0eeqAYlMRx1Aa6rmZxbtMAYQqY6c5dRo8C
	 hGfWtk47HIjTAg+NhYDBzAOJeySqIOsJ41uYytrRM80V26i83cr36kQOlulf7GdAgldL2
	 7haiYnPQbhXc0sCApVhiaS9zuQQnQrpN2Ro5MJs+izgEyxVBuWF3j0v6LVFOy/SXx/vYz
	 9tsHz0ZxmAqKRq7gciZUsCRcBeDCUlI+Rh9avttjhYt1WdGXShVN+Zw+bKoQL6jj1dA==
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=Qg5hzfLR;
	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 8A2F0606A330;
	Wed, 18 Nov 2026 13:13:34 +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=Qg5hzfLR
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=1795007608;
	b=r5xTErfSGzq3FiMq3RkVMmOQkZXffKKgirUOs+N/mp47Kzhju9Hg+PRm/Y2mKlXki2UC
	 akDQd4tdU0cMRUtnMH09CFzuSdA/jbAi2JqyHGtJgXRxBlX8Do1zr6tlJJ1jKJk9j5b1b
	 0OR73xM5RPt/HJGkpc6izPrly0Bi9ZzArOtH5uT6icoSoKjr19FPL2m5fNsV67QKkecvM
	 A+vRzFg9mAUGTz+oKasSPw7Y0zYuk50OF7ljT4rcyRbX6mv3AzKwfF64XsYIisL8oKAP6
	 RZ30Fwj71Qng85o8Rm3DE0dDQrYekJVoIhQbvSYoB/cd6MayDLJmSvoxq9tPb1iQoUw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795007608;
	h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References:
	 Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=v7CzwBI9qtFWKPM2/kfPZOOMtSQs3ZKi6kkd05xq81E=;
	b=QqFwnaNS8Pky4q9mHj/x9ltCVmtdevGFVyaoJsNQzYhPakWEDwLgMD3JTDCaEv8znb6I
	 6bTeKoZZnwPnqPzghvIvbxXUiDd4aP3Vo80Zs8MwEPqR2B7imUhtoJgi/lt3FSHPIkP7x
	 i4LLODNHPXcEe8hTb0UxgptKw2OK5lVWU4UJPQwhPh/0Uc+4WrlHWyLIsQg4KiAZZOgU6
	 5m76w/vzRay469VstxBovXvFudHT7Dj+TbFyGBTaT4gBJHsPFA0Si0eqmd53mUnzlF9yB
	 4cTkvHHNVXOETtkuYlH0Mp778ioe2jgaIeASyTT0zIhir4WiR67hgst1buuZYAsl+2w==
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=Qg5hzfLR;
	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 A79DD606A31C;
	Wed, 18 Nov 2026 13:13:28 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB3AC1F000C4;
	Wed, 18 Nov 2026 13:13:27 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795007608;
	bh=v7CzwBI9qtFWKPM2/kfPZOOMtSQs3ZKi6kkd05xq81E=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=Qg5hzfLRc5Iuuqvgn1lTY3BR2wPtlPnG2nCx5N3SQEGVkhIKXm4Fo1NNwfC/iGbFT
	 oyS8cw4ljFBnUQOuv8PBkE1+kDx1aayOIC3iRl1KN411rExAZqGlDnuVa6ekPEzzFh
	 TF8IXkF88E+0UaPFXGg7ABTLhotCD6hb6WMAVTZiYbrPs1btdO+kCwRt7gekRZuQNH
	 VNsx0G8wTGF8mMsSfzdGR9ai3kU8eJ0mkVRuETNY5sVJbDo0KE2g9hZjutYdiGq3Mm
	 lXAOpO/f9mqoUm0gYCJnsvKsxdLz5w+Wgsgm4sxNqeciD+Xtlpd2lmjgfb991V++Hc
	 tKHXRBHZ4ZIpQ==
X-Cc: Alexander Duyck <alexanderduyck@fb.com>, Jakub Kicinski
 <kuba@kernel.org>, kernel-team@meta.com, Andrew Lunn
 <andrew+netdev@lunn.ch>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni
 <pabeni@redhat.com>, Shuah Khan <shuah@kernel.org>, Mohsin Bashir
 <hmohsin@meta.com>, "Mike Marciniszyn (Meta)"
 <mike.marciniszyn@gmail.com>, Stanislav Fomichev <sdf@fomichev.me>, Bobby
 Eshleman <bobbyeshleman@meta.com>, Breno Leitao <leitao@debian.org>, Simon
 Horman <horms@kernel.org>, Mina Almasry <almasrymina@google.com>, Vadim
 Fedorenko <vadim.fedorenko@linux.dev>, Dimitri Daskalakis
 <daskald@meta.com>, netdev@vger.kernel.org,
 linux-kselftest@vger.kernel.org, Dimitri Daskalakis
 <dimitri.daskalakis1@gmail.com>
X-In-Reply-To: <20261117215416.1901246-2-dimitri.daskalakis1@gmail.com>
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