🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15562

Re: [PATCH net-next v5 11/15] ice: introduce handling of virtchnl LARGE VF opcodes

#15562
From: netdev-bot+sashiko
Date: Thu, 12 Nov 2026 23:07
82 lines
11608 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] This patch changes the type of struct ice_q_vector::num_ring_rx
  and num_ring_tx from u8 to u16 in drivers/net/ethernet/intel/ice/ice.h…
- [Low] The kernel-doc summary of ice_vc_validate_qv_maps() in
  drivers/net/ethernet/intel/ice/virt/queues.c (line 1257) reads…

--

ice: introduce handling of virtchnl LARGE VF opcodes

This adds PF-side handlers for VIRTCHNL_OP_ENABLE_QUEUES_V2,
VIRTCHNL_OP_DISABLE_QUEUES_V2 and VIRTCHNL_OP_MAP_QUEUE_VECTOR. With these
handlers, VFs that negotiate VIRTCHNL_VF_LARGE_NUM_QPAIRS can use more than
16 queues. VIRTCHNL_OP_GET_MAX_RSS_QREGION is only allowlisted for now.

> diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h
> index 89a2bdbecf609..fc2e84136e247 100644
> --- a/drivers/net/ethernet/intel/ice/ice.h
> +++ b/drivers/net/ethernet/intel/ice/ice.h
> @@ -474,8 +474,8 @@ struct ice_q_vector {
>
>  	u16 v_idx;			/* index in the vsi->q_vector array. */
>  	u16 reg_idx;			/* PF relative register index */
> -	u8 num_ring_rx;			/* total number of Rx rings in vector */
> -	u8 num_ring_tx;			/* total number of Tx rings in vector */
> +	u16 num_ring_rx;		/* total number of Rx rings in vector */
> +	u16 num_ring_tx;		/* total number of Tx rings in vector */

[Severity: Low]
This isn't a bug, but could the commit message body mention this change?

struct ice_q_vector is the PF's own interrupt vector structure, and the PF
data path uses it too. The only explanation for widening num_ring_rx and
num_ring_tx is in the v5 changelog below the '---' line:

  widen num_ring_{rx,tx} of struct ice_q_vector to u16, mapping all
  256 queues of a VF to one vector wrapped them around

That text is dropped when the patch is applied.

The reason is that ice_vc_map_q_vector_msg() increments num_ring_rx and
num_ring_tx once for each mapped queue, and up to 256 queues can be mapped
to one vector. Would a sentence saying that in the commit body be worth
adding?

>  	u8 wb_on_itr:1;			/* if true, WB on ITR is enabled */
>  	/* in usecs, need to use ice_intrl_to_usecs_reg() before writing this
>  	 * value to the device
> diff --git a/drivers/net/ethernet/intel/ice/virt/queues.c b/drivers/net/ethernet/intel/ice/virt/queues.c
> index 7f2b459dbc836..f87ccf5d370bb 100644
> --- a/drivers/net/ethernet/intel/ice/virt/queues.c
> +++ b/drivers/net/ethernet/intel/ice/virt/queues.c
> @@ -1046,3 +1046,342 @@ int ice_vc_request_qs_msg(struct ice_vf *vf, u8 *msg)

[ ... ]

> +/**
> + * ice_vc_validate_qv_maps - validate parameters sent in the qs_msg structure

[Severity: Low]
This isn't a bug, but the kernel-doc summary names the wrong structure.

ice_vc_validate_qv_maps() validates a struct virtchnl_queue_vector_maps
passed as qv_maps, and it has no qs_msg parameter. The text looks copied
from ice_vc_validate_qs_v2_msg().

Should this say "validate parameters sent in the qv_maps structure"?

> + * @vf: VF the message was received from
> + * @qv_maps: contents of the message from the VF
> + * @msglen: length of the @qv_maps

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261110141534.95614-1-przemyslaw.kitszel%40intel.com
Technical Details
Message-ID: <179452486033.2199510.16953679518950207701@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362262-linux-kernel-netdev=dewy.ru
References: <20261110141534.95614-12-przemyslaw.kitszel@intel.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362262-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 11/15] ice: introduce handling of virtchnl
 LARGE VF opcodes
Date: Thu, 12 Nov 2026 23:07:40 +0000
Organization: Usenet Network
Message-ID: <179452486033.2199510.16953679518950207701@kernel.org>
References: <20261110141534.95614-12-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="1262347"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:BPyqvKldUOogj/ihXUujC9Eji9g= sha256:bPggb4PHs0W3OOPXa0asCZlIlvcOcTI0JSCyi/FbPgo=
	sha1:s0vdGoIngdoK9wtn2ipSSVKq8Lw= sha256:AxVyC3RA/4u1+3oGT+CW7uV3fQJRA9V1lzqC3gQlUqo=
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 A499C114473; Fri, 13 Nov 2026 07:36:05 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.4
X-Spam-Status: No, score=-3.4 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, URIBL_BLOCKED=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 O0k4CnKrT5Vm;
	Fri, 13 Nov 2026 07:36:02 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-362262-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 B54E411445B; Fri, 13 Nov 2026 07:35:53 +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 42CE9DF019; Thu, 12 Nov 2026 23:07:59 +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=1794524863;
	b=ovSjpuQfPtgRbK8z47McObtd2943MhNVL3SNrUHl8PaZzjttPimYh5uO8z03B9VkgnsP
	 P9TPaRNnr4qxKbIeXn6GV5JLF1TZrKepqvCOhJOw1n8n9R5NOtPujTTdhXue/oH96gcsx
	 MB82g7McAUJJjWTA2saflg0Lw+Vi+fOv0q4xxoUTt5j2FK1XgW0SmTYtEbUtI+bpHj7b7
	 AsfQ/BhOqxOtG2ctPsIBW++1N8fcoLsNEri10nTtpqv2qPJ3JqqqMwJKWvB5qmfiKwjfu
	 PwAbHObsyFnG+czjTzFl6Ip4CqNOTBAveHSA7cmRF4Rl7K/LGPll5UyT18FfnpOzWfA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794524863;
	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=NvShZselLw+f68+vxnWiB6x6pndRpF29QA5p8Qv8+EM=;
	b=Hk8cGaK2qqahcBlpZqzDn1LyzAU9P7fznrvh6g8LHqo6cnLuFBVQghPQ04AUuIWBxq+F
	 DK1XCgH4tgW0lhYdor+g91r3NQn+V5EvZYOGLhu+bYgrwKM8xL2W5Oy19BbpsFpnMt/0x
	 m1co1QwDXnDvj5nN+9MddomAVO+xG8tzPaJgIj0yyltxZ3WAWFGMQ3f7WTJOwkQfJ0Jyw
	 uH9PtFOC9/Lkl1Q+PU3vmAuNxPjG0/67WCRN/nWTvjYkv+33W378b784jWerBF6G5Sw3q
	 QtyKvPeAyuhD0TppuUe8ztDnFOUD8J16pOHSEdPrPa+yJC8z5iOBMJVX3Cjk9w8bhzw==
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=DztCMP8G;
	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 66608606A893;
	Thu, 12 Nov 2026 23:07:43 +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=DztCMP8G
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=1794524862;
	b=iNPMThfWYPSP7OMddVwJy0rBdEUNZMD+oQzF5G699Gjz+ObGZVUdhK6E7zK3rLOxirRV
	 RVSdHO71yKaAP3aYY7pLnuMVjjvdd9fGAFLJ0WfLY6BLb404dnDiXR0DqUSJ5jwH+NtVl
	 Sf960fFDeTg7l2j4eP6rSnzCrfCrHiDJ1vXxLSG0QFWGVdZmCr6PJZBresxV8g8JnZcVs
	 wtdcrITpcpTJBj6p3tGu5kb/+36sTNYtU4JhHfEQjxZukezl4y/l2ln/2yGqsR1bJAwMq
	 AYeDVHEXJleEYec+oRJkcoqdAvpgCaHlwl9ysG7a7YDI3+lLQq2T7o+Q7mjClgLiKEg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794524862;
	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=NvShZselLw+f68+vxnWiB6x6pndRpF29QA5p8Qv8+EM=;
	b=aNaBPtje/S/sBB6oDZPD/WrWyAqU64/EUfnsvnlBjfYP04JTYOPaevYJiB0Fd/I8RcSF
	 5OrMRj9900ultJcA1ieDmF1DdGL3wp4FDeHXd82vGtejkaTeKiKiWmQgrfmWYyV1gBJ1w
	 NoHF3EvLKTSdlpJuiV/hGeRVwldiIJVhgrYR2VksJkTeYbHSSl8q80jwfBXx1UMbT8IQ5
	 xnAWeusIjDjk7Vnz3txDI5EBJNGTfouuTOsZvXapbs/0EecELzGO160g2Iha7tn83Rfau
	 CldwxJArAbyqlZX0W8yPSqfspyrOM7FEMirr5VKR9PLwcLwzt0JSM8LmhgFN0H53FDQ==
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=DztCMP8G;
	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 84745606A890
	for <netdev@vger.kernel.org>; Thu, 12 Nov 2026 23:07:42 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C71491F000C4;
	Thu, 12 Nov 2026 23:07:40 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794524862;
	bh=NvShZselLw+f68+vxnWiB6x6pndRpF29QA5p8Qv8+EM=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=DztCMP8GNCc23NyIAAxDUZ+NxyJCJKv5MzqONOSa1sl5toMM8ZZhH+kBB3rXZ5KKZ
	 14IVscdANxSadw3soBCNqT4LTNwT1vPy77CJz5pJ4cijzR/HHJJjxeF4NW9zoXEN50
	 tg4GCJxkEOx72ty5wvokvetNK1mE+/Afy5dv/6zflS4sfM/YinL5trjcGNjiGhtKYD
	 8pxJNCzVfNZQ5kJpK7Iy4KVy7Q9Lul1y7hBTrKm6my1NgaajfucRIIoe8cS0+zHoEY
	 1G8BmYVrAY+vBonNd9dmFJhexSOuNO6/WzPe3exBKJ3hyk/AB7xF4zo1pcg3wY4HQS
	 UHHb33bLTasAQ==
X-Cc: netdev@vger.kernel.org, kuba@kernel.org, anthony.l.nguyen@intel.com,
 aleksandr.loktionov@intel.com, mschmidt@redhat.com, edumazet@kernel.org,
 horms@kernel.org, pabeni@redhat.com, davem@davemloft.net, jiri@resnulli.us,
 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
X-In-Reply-To: <20261110141534.95614-12-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