From: sashiko-bot@kernel.org
To: "Przemek Kitszel" <przemyslaw.kitszel@intel.com>
Cc: intel-wired-lan@lists.osuosl.org
Subject: Re: [PATCH net-next v2 06/14] ice: bump to 256qs for VF
Date: Sat, 10 Oct 2026 12:16:05 +0000 [thread overview]
Message-ID: <sashiko-outbox-166501@kernel.org> (raw)
In-Reply-To: <20261009121433.30347-7-przemyslaw.kitszel@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] ice: virtchnl error path disables wrong queues when loop index != queue_id
--
commit a7e9d03ecfb2e4d593b7ee51e67a3a4e87ee7a85
Author: Przemek Kitszel <przemyslaw.kitszel@intel.com>
ice: bump to 256qs for VF
This commit adjusts limits, bitmaps, and arrays in the ice driver to support
up to 256 VF queues. It updates the requested and default queue limits while
retaining the legacy 16-queue limit for older virtchnl opcodes.
> diff --git a/drivers/net/ethernet/intel/ice/virt/queues.c b/drivers/net/ethernet/intel/ice/virt/queues.c
> index 2667634e3c8c3..61304493af34b 100644
> --- a/drivers/net/ethernet/intel/ice/virt/queues.c
> +++ b/drivers/net/ethernet/intel/ice/virt/queues.c
[ ... ]
> @@ -841,7 +841,7 @@ int ice_vc_cfg_qs_msg(struct ice_vf *vf, u8 *msg)
> if (!vsi)
> goto error_param;
>
> - if (qci->num_queue_pairs > ICE_MAX_QS_PER_VF_VCV1 ||
> + if (qci->num_queue_pairs > ICE_MAX_QS_PER_VF ||
> qci->num_queue_pairs > min_t(u16, vsi->alloc_txq, vsi->alloc_rxq)) {
> dev_err(ice_pf_to_dev(pf), "VF-%d requesting more than supported number of queues: %d\n",
> vf->vf_id, min_t(u16, vsi->alloc_txq, vsi->alloc_rxq));
[Severity: High]
With the queue limit raised to 256, does the error handling at the end of
ice_vc_cfg_qs_msg() disable the correct queues when a failure occurs?
Since 256 queue pairs exceed the 4096-byte admin queue buffer limit, the VF
driver must split queue configurations across multiple virtchnl messages. In
the second and subsequent messages, the array index i will not match the
actual queue ID being configured (qci->qpair[i].rxq.queue_id).
If an error occurs during these later messages, the cleanup path iterates
using the array index i:
error_param:
/* disable whatever we can */
for (; i >= 0; i--) {
if (ice_vsi_ctrl_one_rx_ring(vsi, false, i, true))
...
if (ice_vf_vsi_dis_single_txq(vf, vsi, i))
...
}
Could this use of i instead of the actual queue ID inadvertently disable
unrelated queues, causing a denial of service to other active queue pairs,
while leaving the newly configured, partially-initialized queues active?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261009121433.30347-1-przemyslaw.kitszel@intel.com?part=6
next prev parent reply other threads:[~2026-10-10 12:16 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 12:04 [PATCH net-next v2 00/14] devlink, mlx5, iavf, ice: XLVF for iavf Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 01/14] devlink, mlx5: add init/fini ops for shared devlink Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 02/14] ice: use shared devlink to store ice_adapters instead of custom xarray Przemek Kitszel
2026-10-10 12:16 ` sashiko-bot
2026-10-13 12:57 ` Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 03/14] ice: add VF queue ena/dis helper functions Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 04/14] ice: add helpers for Global RSS LUT alloc, free, vsi_update Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 05/14] ice: rename ICE_MAX_RSS_QS_PER_VF to ICE_MAX_QS_PER_VF_VCV1 Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 06/14] ice: bump to 256qs for VF Przemek Kitszel
2026-10-10 12:16 ` sashiko-bot [this message]
2026-10-13 13:46 ` Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 07/14] iavf: extend iavf_configure_queues() to support more queues Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 08/14] iavf: temporary rename of IAVF_MAX_REQ_QUEUES to IAVF_MAX_REQ_QUEUES_VCV1 Przemek Kitszel
2026-10-10 12:16 ` sashiko-bot
2026-10-13 13:27 ` Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 09/14] iavf: increase max number of queues to 256 Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 10/14] iavf: use new opcodes to request more than 16 queues Przemek Kitszel
2026-10-10 12:16 ` sashiko-bot
2026-10-09 12:04 ` [PATCH net-next v2 11/14] ice: introduce handling of virtchnl LARGE VF opcodes Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 12/14] devlink: give user option to allocate resources Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 13/14] ice: represent RSS LUTs as devlink resources Przemek Kitszel
2026-10-10 12:16 ` sashiko-bot
2026-10-13 13:49 ` Przemek Kitszel
2026-10-09 12:04 ` [PATCH net-next v2 14/14] ice: support up to 256 VF queues Przemek Kitszel
2026-10-10 12:16 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-166501@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=przemyslaw.kitszel@intel.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox