From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84EC5606A68B for ; Thu, 3 Dec 2026 01:04:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=1Y7wYSU8; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EDSBq0jP Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 690BB6FBC9; Thu, 3 Dec 2026 01:04:21 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id NqyNBaPLIUjC; Thu, 3 Dec 2026 01:04:20 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org 832606FBD5 Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796259860; b=YHhYPpoV8JA7KI3gnHsm0SaOfoE5wkq3T3XfAbO4ARxZKup4SjEnd4xQy8fdMKe0OuAj RbZEtib28JJThQqNxqidFe3EeJtoqfNbmhlYqDFHVODoAiU+aguaWmkOe+L/UW0WQiAY8 35JklNIzlu8yhv4Ct4khzVJQDHTnyzbjwHpu88GaLJ4dwx8sx8k2LuWbZGVfbLdKo+hlo J17+rUW7Z1UZYg9o8R0/jWAeXP1Y3DlRc1Y119yub1VAJv98cY7sQEiuoAjcmp3AHUsle Y0suct8iXX4jv8CQF6ueY9ItwUKcLfMrrw7uQ5+B8b7L7I55D7+BUvQBDw/8zyyk76A== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796259860; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version:X-BeenThere:X-Mailman-Version: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=zMaoTD/7sw7xncpxtPCGGPpYAEpLJQcyv4RP9a9tpeI=; b=nLx12u5kJ1wJ3OaD6JLtgr/UOThNghiK0mgJqBfPhaPWvbNiDFdW7/xEiKqRKIOIl5kz 5Radwj/wksVpUl5KhABFgUEe4w5S6bblU5TOnB0K1r1qE4E/4Yx8sI77ahfvMIfgS34QL 4m2jvz2k1SBTnAovrVSE4QdlqoLEjCQbQ6so7Hkc1jYrJKAOZp8RJOSDogX03cGq7DZmA cdshBJnflDwn1aPILFsZmFyh5NTJ1GeJlPT+uqjTHivtUDxzAhUMM0yvNSqxx1DKOqRTJ 83o+x38QOUZZzBTANf81TJWlGGMrgzCe1Fhl7Dqs8BLXeQoqTiwEQ7uwfpjZDsNsqUQ== ARC-Authentication-Results: i=1; smtp3.osuosl.org; dmarc=pass header.from=kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EDSBq0jP; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796259860; bh=zMaoTD/7sw7xncpxtPCGGPpYAEpLJQcyv4RP9a9tpeI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=1Y7wYSU8goyekBSRxO2gebbSBbQQOefCDANp34F5SeYzy9S555n6s4dINZWNmaQ8T vsFTVQUTGyclovTaNyW8/MHY2/jaFdv02l1Aggo+H9l0pw8RYb427wmWAVrMBw8/rO 3D05+9qWFKWIF8JC5P9AuTGf2nv2W4hQsHfv3uaA+zWa1xrXlQ/F9WxUiqRZk2UuwM N1g5oK8hGrEGTAsAHldmmk//NB+WnA6HGzhq50pPzZjm44PLhUeNqYkv4+l45Zxk/d msudmKuft1Jfq4yTanbF/5vsAiow04ANSJjcgqeDZG8vX2PqcnF2VnTUT67wkeUoIm Q/pSumlKW/CZA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id 832606FBD5; Thu, 3 Dec 2026 01:04:20 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id EF8AE109 for ; Thu, 3 Dec 2026 01:04:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E11BB6FBD5 for ; Thu, 3 Dec 2026 01:04:18 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id po4n8czHQmWp for ; Thu, 3 Dec 2026 01:04:18 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org EAAB66FBC9 Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip="2600:3c04:e001:324:0:1991:8:25" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=netdev-bot+sashiko@kernel.org; receiver= Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EDSBq0jP Received: from tor.source.kernel.org (tor.source.kernel.org [IPv6:2600:3c04:e001:324:0:1991:8:25]) by smtp3.osuosl.org (Postfix) with ESMTPS id EAAB66FBC9 for ; Thu, 3 Dec 2026 01:04:17 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id DB74160CE4; Thu, 3 Dec 2026 01:04:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20B0F1F000C1; Thu, 3 Dec 2026 01:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796259855; bh=zMaoTD/7sw7xncpxtPCGGPpYAEpLJQcyv4RP9a9tpeI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=EDSBq0jPWrfSb4p7HOT+DYWLNhmqHoLvgGprQvAIZ4RSJs/DJ7rMbZqSu83WhwQlG ZG36ewRTbeIem9fIfvpJ9nby3UB4VxmV++rK44TbEy3dM2jf1TTzp1CBsgMyjG4FKQ dxUSrWYotYXXzdPaL6qdB2Ixd2/fHuOGvH43U/f55pfw1q9lGBmdrtZhtnjtTnuOjy 4mpHufE2HwxmybZgC8wgGNcWpaEwhBTiIMnXOBPzqmQZJTpGIzPo0w1G8e0kH/aQH1 1YDMHULJH2QX53Vx2t8MnQ7Wq4VMvjVupRd7s23uLZ4i3yUtz//K/iGalVHfjq8aFE LgL0CtMwlcj0g== Subject: Re: [PATCH net v7 4/7] igb: keep the stack's Rx queues that still have an XSK pool From: netdev-bot+sashiko@kernel.org To: antonio@mandelbit.com Cc: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, janislacis06@gmail.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, sdf@fomichev.me, sriram.yagnaraman@ericsson.com, kurt@linutronix.de, maciej.fijalkowski@intel.com, hkallweit1@gmail.com, joe@dama.to, rafael@kernel.org, sven.auhagen@voleatech.de, netdev@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, stable@vger.kernel.org Date: Thu, 03 Dec 2026 01:04:13 +0000 Message-ID: <179625985367.3146.3321880417480115004@kernel.org> In-Reply-To: <20261202002317.3140591-5-antonio@mandelbit.com> References: <20261202002317.3140591-5-antonio@mandelbit.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Archived-By: MIME-Version: 1.0 X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] After this patch, the comment in __igb_open() (drivers/net/ethernet/intel/igb/igb_main.c) no longer matches the code… -- igb: keep the stack's Rx queues that still have an XSK pool This patch adds igb_set_real_num_queues(). The helper keeps real_num_rx_queues up to the highest queue that still has a zero-copy XSK pool bound, so the pool can still be disabled after igb lowers its own queue counts (MSI-X to MSI fallback on resume, or VF enable). The count is lowered again at the next open. Closes: https://lore.kernel.org/netdev/xupy6jbpnziq2qji54zjbvm7neggrwkxg3sfrhlolmrd6ysifl@zptk6ynkbu5f/ > diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c > index 5774a4d3c9810..9752350ffc68b 100644 > --- a/drivers/net/ethernet/intel/igb/igb_main.c > +++ b/drivers/net/ethernet/intel/igb/igb_main.c [ ... ] > @@ -4213,8 +4234,7 @@ static int __igb_open(struct net_device *netdev, bool resuming, > * runtime resume igb_rtnl_resume_task() does it. > */ > if (rtnl_held) { > - err = netif_set_real_num_queues(netdev, adapter->num_tx_queues, > - adapter->num_rx_queues); > + err = igb_set_real_num_queues(adapter); [Severity: Low] This isn't a bug, but should the comment above this call be updated too? The full comment in __igb_open() reads: /* Notify the stack of the actual queue counts. This needs RTNL: on * runtime resume igb_rtnl_resume_task() does it. */ With this change, igb_set_real_num_queues() can on purpose report more Rx queues than adapter->num_rx_queues. That happens while a zero-copy pool is still bound to a queue the device no longer has: for (i = netdev->real_num_rx_queues; i > rxq; i--) { pool = xsk_get_pool_from_qid(netdev, i - 1); if (pool && pool->umem->zc) { rxq = i; break; } } So the Rx count passed to the stack is not always the device's actual count. Someone reading the __igb_open() comment could assume that netdev->real_num_rx_queues == adapter->num_rx_queues after open. The previous patch in this series had to drop that same assumption in igb_xsk_pool_disable(). Could the comment mention that the Rx count may stay higher while a zero-copy XSK pool is still bound to a removed queue? > if (err) > goto err_set_queues; > } -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202002317.3140591-1-antonio%40mandelbit.com