patch 'net/mlx5: fix default flow rules start' has been queued to stable release 24.11.4
    Kevin Traynor 
    ktraynor at redhat.com
       
    Fri Oct 31 15:32:34 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/05/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/8806e824933ba0bdc08498f14310d89f173e2fb0
Thanks.
Kevin
---
>From 8806e824933ba0bdc08498f14310d89f173e2fb0 Mon Sep 17 00:00:00 2001
From: Maayan Kashani <mkashani at nvidia.com>
Date: Wed, 30 Jul 2025 14:35:12 +0300
Subject: [PATCH] net/mlx5: fix default flow rules start
[ upstream commit 6f4909dfa017aacfca6a3fc89d014d474b1fbc6a ]
As part of non-template implementation,
new default rule was added in HWS mode (dv_flow_en=2)
in case dv_xmeta_en=4 (32bits extended META for HWS mode).
In case the proxy port did not start, and it was not configured,
it failed to create this rule and failed to start port representors.
Added ignore for this failure to align to other default rules
creation failure behaviour, and to enable testing port representors
w/o starting the proxy port.
Fixes: 821a6a5cc495 ("net/mlx5: add metadata split for compatibility")
Signed-off-by: Maayan Kashani <mkashani at nvidia.com>
Acked-by: Bing Zhao <bingz at nvidia.com>
---
 drivers/net/mlx5/mlx5_flow.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c
index f83ae1883d..5039a81b14 100644
--- a/drivers/net/mlx5/mlx5_flow.c
+++ b/drivers/net/mlx5/mlx5_flow.c
@@ -8231,6 +8231,16 @@ mlx5_flow_start_default(struct rte_eth_dev *dev)
 	struct mlx5_priv *priv = dev->data->dev_private;
 
-	if (priv->sh->config.dv_flow_en == 2)
-		return mlx5_flow_nta_add_default_copy_action(dev, &error);
+	if (priv->sh->config.dv_flow_en == 2) {
+		/*
+		 * Ignore this failure, if the proxy port is not started, other
+		 * default jump actions are not created and this rule will not
+		 * be hit.
+		 */
+		if (mlx5_flow_nta_add_default_copy_action(dev, &error)) {
+			DRV_LOG(DEBUG, "port %u failed to start default copy action: %s",
+				dev->data->port_id, strerror(rte_errno));
+			return 0;
+		}
+	}
 #endif
 	/* Make sure default copy action (reg_c[0] -> reg_b) is created. */
-- 
2.51.0
---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-10-31 13:53:53.246545457 +0000
+++ 0032-net-mlx5-fix-default-flow-rules-start.patch	2025-10-31 13:53:52.071523477 +0000
@@ -1 +1 @@
-From 6f4909dfa017aacfca6a3fc89d014d474b1fbc6a Mon Sep 17 00:00:00 2001
+From 8806e824933ba0bdc08498f14310d89f173e2fb0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 6f4909dfa017aacfca6a3fc89d014d474b1fbc6a ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index 8db372123c..7c6811b523 100644
+index f83ae1883d..5039a81b14 100644
@@ -29 +30 @@
-@@ -8218,6 +8218,16 @@ mlx5_flow_start_default(struct rte_eth_dev *dev)
+@@ -8231,6 +8231,16 @@ mlx5_flow_start_default(struct rte_eth_dev *dev)
    
    
More information about the stable
mailing list