patch 'vdpa/mlx5: fix RSS flow leak on steering update failure' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:51:28 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

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/18/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/0912ae82870ef219d3727abbba8e310034b66647

Thanks.

Luca Boccassi

---
>From 0912ae82870ef219d3727abbba8e310034b66647 Mon Sep 17 00:00:00 2001
From: Maayan Kashani <mkashani at nvidia.com>
Date: Sun, 25 Oct 2026 10:16:38 +0200
Subject: [PATCH] vdpa/mlx5: fix RSS flow leak on steering update failure

[ upstream commit 5731434f6c808fc4899c49bdda857e0578e685f8 ]

mlx5_vdpa_steer_update() calls mlx5_vdpa_rss_flows_create() which, on
failure, leaves behind any RSS steering objects (matcher, TIR, TIR
action, flow) it managed to create before the error, relying on the
caller to release them.

mlx5_vdpa_steer_setup() honors that contract by calling
mlx5_vdpa_steer_unset() on its error path, but mlx5_vdpa_virtq_enable()
only logs a warning and continues when mlx5_vdpa_steer_update() fails.
As a result, every failed steering update triggered from the virtq
enable/disable path leaks the partially created software-steering
objects. Over many reconfiguration cycles this exhausts the kernel
software-steering (DR) resources and later probes fail with
"Failed to create Rx domain".

Free the partial RSS flows in mlx5_vdpa_steer_update() itself so that
all callers are covered regardless of how they handle the return value.
mlx5_vdpa_rss_flows_destroy() checks each object for NULL, so the
subsequent steer_unset() on the steer_setup() error path stays a safe
no-op.

Fixes: 9f09b1ca15c5 ("vdpa/mlx5: recreate a virtq becoming enabled")

Signed-off-by: Maayan Kashani <mkashani at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
 drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c
index c2e0a17ace..b1bca7f0f7 100644
--- a/drivers/vdpa/mlx5/mlx5_vdpa_steer.c
+++ b/drivers/vdpa/mlx5/mlx5_vdpa_steer.c
@@ -255,6 +255,7 @@ mlx5_vdpa_steer_update(struct mlx5_vdpa_priv *priv, bool is_dummy)
 		ret = mlx5_vdpa_rss_flows_create(priv);
 		if (ret) {
 			DRV_LOG(ERR, "Cannot create RSS flows.");
+			mlx5_vdpa_rss_flows_destroy(priv);
 			pthread_mutex_unlock(&priv->steer_update_lock);
 			return -1;
 		}
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:17.088731019 +0000
+++ 0014-vdpa-mlx5-fix-RSS-flow-leak-on-steering-update-failu.patch	2026-11-16 22:52:16.428231895 +0000
@@ -1 +1 @@
-From 5731434f6c808fc4899c49bdda857e0578e685f8 Mon Sep 17 00:00:00 2001
+From 0912ae82870ef219d3727abbba8e310034b66647 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5731434f6c808fc4899c49bdda857e0578e685f8 ]
+
@@ -27 +28,0 @@
-Cc: stable at dpdk.org
@@ -36 +37 @@
-index c2e0a17ace2..b1bca7f0f7d 100644
+index c2e0a17ace..b1bca7f0f7 100644


More information about the stable mailing list