patch 'net/mlx5: fix flow group ID for action translation' has been queued to stable release 24.11.2
Kevin Traynor
ktraynor at redhat.com
Mon Mar 24 17:16:23 CET 2025
Hi,
FYI, your patch has been queued to stable release 24.11.2
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/28/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/a9b2ac1bf31e5e8c6a136fbf4f6c8311353050c9
Thanks.
Kevin
---
>From a9b2ac1bf31e5e8c6a136fbf4f6c8311353050c9 Mon Sep 17 00:00:00 2001
From: Bing Zhao <bingz at nvidia.com>
Date: Mon, 3 Mar 2025 15:49:20 +0200
Subject: [PATCH] net/mlx5: fix flow group ID for action translation
[ upstream commit 39c93b85866bad6c43a8a6d8bb3f81bfc0d2ff94 ]
In HWS non-template API, the actual group ID is calculated in the
flow_hw_translate_flow_actions(). This would be set into the dummy
template table for the following usage.
Since __flow_hw_translate_actions_template() is also called for the
dummy action template and some fixed actions' translation. The actual
group ID is also needed to avoid the misuse of actions for 'root'
table. Only the 'group' in the attributes can be used in this
function. The actual group should be set explicitly before calling
it in the non-template API.
Fixes: 27d171b88031 ("net/mlx5: abstract flow action and enable reconfigure")
Signed-off-by: Bing Zhao <bingz at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/net/mlx5/mlx5_flow_hw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index 8f3cb45daf..07037d49cb 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -13520,4 +13520,5 @@ flow_hw_translate_flow_actions(struct rte_eth_dev *dev,
table->nb_action_templates = 1;
memcpy(&table->cfg.attr.flow_attr, attr, sizeof(*attr));
+ table->cfg.attr.flow_attr.group = src_group;
table->ats[0].action_template = at;
ret = __flow_hw_translate_actions_template(dev, &table->cfg, hw_acts, at,
--
2.48.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-03-24 16:15:15.382677775 +0000
+++ 0016-net-mlx5-fix-flow-group-ID-for-action-translation.patch 2025-03-24 16:15:14.779735618 +0000
@@ -1 +1 @@
-From 39c93b85866bad6c43a8a6d8bb3f81bfc0d2ff94 Mon Sep 17 00:00:00 2001
+From a9b2ac1bf31e5e8c6a136fbf4f6c8311353050c9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 39c93b85866bad6c43a8a6d8bb3f81bfc0d2ff94 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index c95261cd01..22778310b0 100644
+index 8f3cb45daf..07037d49cb 100644
@@ -30 +31 @@
-@@ -13764,4 +13764,5 @@ flow_hw_translate_flow_actions(struct rte_eth_dev *dev,
+@@ -13520,4 +13520,5 @@ flow_hw_translate_flow_actions(struct rte_eth_dev *dev,
More information about the stable
mailing list