* [PATCH v1] net/mlx5: fix invalid queue index handling
@ 2025-11-05 12:52 Rongwei Liu
2025-11-06 14:16 ` Raslan Darawsheh
0 siblings, 1 reply; 2+ messages in thread
From: Rongwei Liu @ 2025-11-05 12:52 UTC (permalink / raw)
To: dev, matan, viacheslavo, orika, suanmingm, thomas
Cc: getelson, stable, Dariusz Sosnowski, Bing Zhao
When failing to allocate a meter HW resource,
PMD may use an invalid index to release the job.
Fixes: 4359d9d1f76b ("net/mlx5: fix sync meter processing in HWS")
Cc: getelson@nvidia.com
Cc: stable@dpdk.org
Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
---
drivers/net/mlx5/mlx5_flow_hw.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index ff68483a40..cd11619b26 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -1934,6 +1934,8 @@ flow_hw_meter_mark_compile(struct rte_eth_dev *dev,
aso_mtr = flow_hw_meter_mark_alloc(dev, queue, action, job,
true, error);
if (!aso_mtr) {
+ if (queue == MLX5_HW_INV_QUEUE)
+ queue = CTRL_QUEUE_ID(priv);
flow_hw_job_put(priv, job, queue);
return -1;
}
--
2.27.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH v1] net/mlx5: fix invalid queue index handling
2025-11-05 12:52 [PATCH v1] net/mlx5: fix invalid queue index handling Rongwei Liu
@ 2025-11-06 14:16 ` Raslan Darawsheh
0 siblings, 0 replies; 2+ messages in thread
From: Raslan Darawsheh @ 2025-11-06 14:16 UTC (permalink / raw)
To: Rongwei Liu, dev, matan, viacheslavo, orika, suanmingm, thomas
Cc: getelson, stable, Dariusz Sosnowski, Bing Zhao
Hi,
On 05/11/2025 2:52 PM, Rongwei Liu wrote:
> When failing to allocate a meter HW resource,
> PMD may use an invalid index to release the job.
>
> Fixes: 4359d9d1f76b ("net/mlx5: fix sync meter processing in HWS")
> Cc: getelson@nvidia.com
> Cc: stable@dpdk.org
>
> Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-06 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-05 12:52 [PATCH v1] net/mlx5: fix invalid queue index handling Rongwei Liu
2025-11-06 14:16 ` Raslan Darawsheh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).