patch 'net/mlx5: fix meter mark allocation' has been queued to stable release 24.11.4

Kevin Traynor ktraynor at redhat.com
Fri Nov 21 12:20:35 CET 2025


Hi,

FYI, your patch has been queued to stable release 24.11.4

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/26/25. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/49fdd94e3a56314980642b370818075c03956a4c

Thanks.

Kevin

---
>From 49fdd94e3a56314980642b370818075c03956a4c Mon Sep 17 00:00:00 2001
From: Rongwei Liu <rongweil at nvidia.com>
Date: Wed, 5 Nov 2025 14:52:00 +0200
Subject: [PATCH] net/mlx5: fix meter mark allocation

[ upstream commit 112facb17b0c0efd90e15501d0830a0f6af7b7c9 ]

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")

Signed-off-by: Rongwei Liu <rongweil at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at 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 052b7f2768..fcbf8df2c0 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -1901,4 +1901,6 @@ flow_hw_meter_mark_compile(struct rte_eth_dev *dev,
 					   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.51.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-11-21 11:05:11.210396983 +0000
+++ 0051-net-mlx5-fix-meter-mark-allocation.patch	2025-11-21 11:05:09.502201336 +0000
@@ -1 +1 @@
-From 112facb17b0c0efd90e15501d0830a0f6af7b7c9 Mon Sep 17 00:00:00 2001
+From 49fdd94e3a56314980642b370818075c03956a4c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 112facb17b0c0efd90e15501d0830a0f6af7b7c9 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index ff68483a40..cd11619b26 100644
+index 052b7f2768..fcbf8df2c0 100644
@@ -22 +23 @@
-@@ -1935,4 +1935,6 @@ flow_hw_meter_mark_compile(struct rte_eth_dev *dev,
+@@ -1901,4 +1901,6 @@ flow_hw_meter_mark_compile(struct rte_eth_dev *dev,



More information about the stable mailing list