patch 'net/mlx5: fix table leak on HWS sample action destruction' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:10 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/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/9fa53c591fcc27bb5b6f6fd6d9f3c81dccd7dde0
Thanks.
Kevin
---
>From 9fa53c591fcc27bb5b6f6fd6d9f3c81dccd7dde0 Mon Sep 17 00:00:00 2001
From: Maayan Kashani <mkashani at nvidia.com>
Date: Sun, 16 Aug 2026 11:15:24 +0300
Subject: [PATCH] net/mlx5: fix table leak on HWS sample action destruction
[ upstream commit 7080da376f9321d97639f83f28e2a901e241149b ]
Destroy the composite dest_array mirror action before releasing its
clone destinations. Releasing a JUMP clone can drop the last group
table reference while the dest_array still points at that table,
leaving the firmware flow table objects leaked on port close.
Fixes: 3564e928c759 ("net/mlx5: support HWS flow mirror action")
Signed-off-by: Maayan Kashani <mkashani at nvidia.com>
Acked-by: Bing Zhao <bingz at nvidia.com>
---
drivers/net/mlx5/mlx5_flow_hw.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index 525dd42b05..655edfaae1 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -14869,8 +14869,16 @@ mlx5_hw_mirror_destroy(struct rte_eth_dev *dev, struct mlx5_mirror *mirror)
mlx5_indirect_list_remove_entry(&mirror->indirect);
- for (i = 0; i < mirror->clones_num; i++)
- mlx5_mirror_destroy_clone(dev, &mirror->clone[i]);
+ /*
+ * The mirror action is a composite dest_array that references each
+ * clone destination (jump table or Rx queue). It must be destroyed
+ * before the clones so the underlying destinations are no longer
+ * referenced when they are released; otherwise releasing a clone can
+ * drop the last reference to a group table and destroy it while the
+ * dest_array still points at it, leaking the firmware flow table.
+ */
if (mirror->mirror_action)
mlx5dr_action_destroy(mirror->mirror_action);
+ for (i = 0; i < mirror->clones_num; i++)
+ mlx5_mirror_destroy_clone(dev, &mirror->clone[i]);
mlx5_free(mirror);
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:50.056986146 +0000
+++ 0384-net-mlx5-fix-table-leak-on-HWS-sample-action-destruc.patch 2026-12-03 12:52:39.295938786 +0000
@@ -1 +1 @@
-From 7080da376f9321d97639f83f28e2a901e241149b Mon Sep 17 00:00:00 2001
+From 9fa53c591fcc27bb5b6f6fd6d9f3c81dccd7dde0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 7080da376f9321d97639f83f28e2a901e241149b ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 8dabf21b76..8b74f66770 100644
+index 525dd42b05..655edfaae1 100644
@@ -24 +25 @@
-@@ -14647,8 +14647,16 @@ mlx5_hw_mirror_destroy(struct rte_eth_dev *dev, struct mlx5_mirror *mirror)
+@@ -14869,8 +14869,16 @@ mlx5_hw_mirror_destroy(struct rte_eth_dev *dev, struct mlx5_mirror *mirror)
More information about the stable
mailing list