patch 'net/mlx5: fix counter leak in hairpin queue setup' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Mar 19 11:02:27 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/23/26. 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/165e5562c1c00a21f725aa4ad109d015f3ebed48
Thanks.
Kevin
---
>From 165e5562c1c00a21f725aa4ad109d015f3ebed48 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Tue, 17 Feb 2026 07:05:00 -0800
Subject: [PATCH] net/mlx5: fix counter leak in hairpin queue setup
[ upstream commit c9a11e93f142b877c027b94cd6167d3cb083842e ]
When rxq_obj_modify_counter_set_id() fails in
mlx5_enable_per_queue_hairpin_counter(), the freshly allocated DevX
queue counter object is not destroyed before returning. Destroy it
on the error path.
Fixes: f0c0731b6d40 ("net/mlx5: add counters for hairpin drop")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/net/mlx5/mlx5.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 26a05e51c2..c6a1c1d5d9 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -3705,4 +3705,6 @@ mlx5_enable_per_queue_hairpin_counter(struct rte_eth_dev *dev, uint64_t id)
DRV_LOG(ERR, "failed to modify rq object for port %u"
"%s", priv->dev_data->port_id, strerror(rte_errno));
+ mlx5_devx_cmd_destroy(rxq->q_counter);
+ rxq->q_counter = NULL;
return ret;
}
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-19 10:01:07.986075606 +0000
+++ 0029-net-mlx5-fix-counter-leak-in-hairpin-queue-setup.patch 2026-03-19 10:01:07.094331262 +0000
@@ -1 +1 @@
-From c9a11e93f142b877c027b94cd6167d3cb083842e Mon Sep 17 00:00:00 2001
+From 165e5562c1c00a21f725aa4ad109d015f3ebed48 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c9a11e93f142b877c027b94cd6167d3cb083842e ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 4d3bfddc36..d533ce41e1 100644
+index 26a05e51c2..c6a1c1d5d9 100644
More information about the stable
mailing list