๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22122

Re: [PATCH net-next v7 09/15] iavf: increase max number of queues to 256

#22122
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 21:57
53 lines
10068 bytes
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] The commit message understates where the patch applies the legacy
  16-queue limit.

--

iavf: increase max number of queues to 256

This raises the maximum number of queues the iavf driver handles from 16
to 256. The netdev is now always allocated with 256 Tx/Rx queues, and the
queue vector count is capped at 64. The legacy virtchnl paths stay limited
to 16 queues.

> Increase the max number of queues that driver will handle to 256.
> Use old legacy limit in the virtchnl handling of iavf_map_queues().

[Severity: Low]

This isn't a bug, but is this description complete?

The patch also caps the legacy VIRTCHNL_OP_ENABLE_QUEUES and
VIRTCHNL_OP_DISABLE_QUEUES bitmaps in iavf_enable_queues() and
iavf_disable_queues():

drivers/net/ethernet/intel/iavf/iavf_virtchnl.c:iavf_enable_queues() {
    ...
	vqs.tx_queues = BIT(min(adapter->num_active_queues,
				IAVF_MAX_REQ_QUEUES_VCV1)) - 1;
    ...
}

The only explanation for this is the v5 changelog entry ("cap the legacy
VIRTCHNL_OP_{EN,DIS}ABLE_QUEUES bitmaps at 16 queues ... BIT() above 63
queues is undefined"). That entry is below the --- line, so it is dropped
when the patch is applied.

In this commit the min() has no effect, because at most 16 queue pairs are
still accepted from the PF. These lines are still the same at the end of
the series, though, so the legacy enable/disable opcodes leave out queues
16 and above without any warning.

Could the commit message also mention the 16-queue limit on the
enable/disable bitmaps? Readers of the applied commit and backporters
would then see it.

-- 
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261121230123.316391-1-przemyslaw.kitszel%40intel.com
Technical Details
Message-ID: <179555745441.3135.7053270050091454026@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-370801-linux-kernel-netdev=dewy.ru
References: <20261121230123.316391-10-przemyslaw.kitszel@intel.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-370801-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v7 09/15] iavf: increase max number of queues to 256
Date: Tue, 24 Nov 2026 21:57:34 +0000
Organization: Usenet Network
Message-ID: <179555745441.3135.7053270050091454026@kernel.org>
References: <20261121230123.316391-10-przemyslaw.kitszel@intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="47405"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7omuhzoFWEo3GpaBTmkf0tShVL0= sha256:zWAhpu8MUIokWQKtJGMsPMEA59J5hqjufZsnSohD7v0=
	sha1:8YqvIkKLJtdTTmocuJxyQNCK1hk= sha256:Nk0+src/dwCnhRCpltQJADUaXDGQ9NQog4r5HRDzhJQ=
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 BFF43125E37; Wed, 25 Nov 2026 00:57:55 +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 bxZ4gnXv5AmI;
	Wed, 25 Nov 2026 00:57:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370801-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 E2FB6125E39; Wed, 25 Nov 2026 00:57:43 +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 094D93A3D4; Tue, 24 Nov 2026 21:57:38 +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=1795557457;
	b=A+44Ek2Tw0xUSHhFiItDo6+onDSRCBc+2ktunoQgWvK3/SUpGo+7QyKfhxj9AXaPK7r8
	 RkIDnZ1YrTj1jVd4Y7ezuiuJjEUCJkr40yevPL/WZkdL2j360nrCS2Bwno39VBds9sqbw
	 4lwC29kP6DmnKwYV1XI+nb1NlPDFz1UorpgdAKysG1PKvLhn4/UR8ZjkbBKsa20hlvwz6
	 jayy+vNyBk77t5nCOrFaw12d0+NXKpAg2MqYBr3doT8SRUOZAPjlRgfE/CkOzj1TwqJxq
	 oDQ6oviJ/I0oYCulI9or+T3NWdcPE9iXTJgY8+TkbWKZk9K0YqhQcUTQVdE5vStzzXA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795557457;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=CXMWcmmWbsNSwx3Yot88Y0ytFCtq8HiJYQGhUD8ZmRQ=;
	b=gBPupstWswaWDAWqvo1k64bcJZjAfOhVZTlmHqKJVK5z/GtRu7s+nDnQYAH/bjqyO1F4
	 6MAyRJANEz/mc2NnQmdhwZD/7II6nvcTZboHKIsC6YrZ6euLnCj0SHQ2dRtAtAvN/BJAq
	 QIUQulDtuL3LqPqfQ4fdGOCcrb4WJbQuo2PjKSGaHWDyLX6us+Xfcg3sDV9MIAt+kVtZ2
	 LgvW1evD992fwXJQrkeDc4nPDzvLBuKL7CD35KsFdFPm5RGExFso2lFwVXtT05m+tUspY
	 dCi+Go9ONANLwSPDDmv9Otkgzs3d7yztoXMjEoJV2tYxI3osF0Iu+0bOHt2Hrb+R8nQ==
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=Fsa0eLKw;
	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 4F0F3606A339;
	Tue, 24 Nov 2026 21:57:37 +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=Fsa0eLKw
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=1795557456;
	b=GXMtQcG2pjVxMOzVlR4r/zAUXmvl44JI5xA0p7r/Iktm7cJSSaUYxxuNdWfOPSzyOxbr
	 pyTjum7gDhx4k4h8le+N93FIpjRoaQGzYBURa/V86vpjEGxGgkGDZbbdJzuEroVVo4e12
	 BJ6RtUq9ur4Hs2FL/0nAqkeouwgkITiOTMhzO+Tr8UVMp9Sq3thBODIxn4ffdL9pDWQ48
	 BOKAL0VpqmFHodtjefG4mZvXwA0G5vUyr2VtmxjSfBgFbkAKGZYrenz0/QZ+/GbNccnrw
	 pcRnfYczk6boAY4QBCGbGbtfKf5LggsgdhxtuKOocHkkgHByVlwG0MjqPT/AxrEd7PA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795557456;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=CXMWcmmWbsNSwx3Yot88Y0ytFCtq8HiJYQGhUD8ZmRQ=;
	b=QCRt2+h1W82q/K2T0HZXSwmPheEpSc/BJNRnQkHa4tkQmDflsBHUE5ckSMLGvQLyDLn9
	 UgjMxzNd9+rPOy2T/Jmgp3rcA7WGQIRT5fw+urSdo7PTv2NC8yVdrhHjRFbGiLe+4P7iS
	 fduwh28eft1gQAv2hrXhmUD91kZdxMMkF5V5+mpjmVT3vWyA03nIoRiqSXbdZoMMEPqa8
	 1KDQabElcsmIHkvWE7+2SMc7F3/3M2jNuODRrqvikP/qJVcELAjWrPWOU+U7wRPbvDRCR
	 7fkCkWfJk8Tmwt02MSvyxpfUOsfqQ8fYsNWRbE+zaCw3MN2dxH+1dALycrDbtVK1o/A==
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=Fsa0eLKw;
	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 6FA35606A31E
	for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 21:57:36 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6E411F000C4;
	Tue, 24 Nov 2026 21:57:34 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795557456;
	bh=CXMWcmmWbsNSwx3Yot88Y0ytFCtq8HiJYQGhUD8ZmRQ=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=Fsa0eLKwZRWjdSJmvZn0jESzlEUgETFXFFlN6NnbbKQjyydkNs3tgI7nbSqyWp6t9
	 x/1BC+s/KTQkHOY+ouQuhYL5kHWJgVM7YmX1uuxc08zuHJEuY/PqxFHSR37eqdbNOp
	 meEhm4HGKpBcyK15/5FQWSJloh5IAxLBlYmoe3pw2hwser0MUkZ82+7HHnCfeOWAdt
	 1HkGFqeJw09hmu8lTpOxtoybWbZ1nkGFWxisCt5cuiZ8mA0MW4ce0bfWzm0ik+VBjO
	 O4yFgDAjnv1Pm2C7zotfZuSQCKSuvQfnlA4OBKymoCi0MhEw4BPrAFhpGnq6pbU0o+
	 XWN7/fVWa55LQ==
X-Cc: netdev@vger.kernel.org, kuba@kernel.org, jiri@resnulli.us,
 anthony.l.nguyen@intel.com, aleksandr.loktionov@intel.com,
 mschmidt@redhat.com, edumazet@kernel.org, horms@kernel.org, pabeni@redhat.com,
 davem@davemloft.net, corbet@lwn.net, skhan@linuxfoundation.org,
 rdunlap@infradead.org, andrew+netdev@lunn.ch, saeedm@nvidia.com,
 tariqt@nvidia.com, leon@kernel.org, mbloch@nvidia.com,
 jacob.e.keller@intel.com, jedrzej.jagielski@intel.com, anzaki@gmail.com,
 brett.creeley@amd.com, ohartoov@nvidia.com, poros@redhat.com,
 donald.hunter@gmail.com
X-In-Reply-To: <20261121230123.316391-10-przemyslaw.kitszel@intel.com>
X-sashiko-severity: Low
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