patch 'net/mlx5: fix flow metadata sharing with E-Switch and VM' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Feb 26 14:09:47 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/02/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/bf51aeb31359030e0bab39501645bbad7464a1bb
Thanks.
Kevin
---
>From bf51aeb31359030e0bab39501645bbad7464a1bb Mon Sep 17 00:00:00 2001
From: Gregory Etelson <getelson at nvidia.com>
Date: Sun, 23 Nov 2025 12:12:42 +0200
Subject: [PATCH] net/mlx5: fix flow metadata sharing with E-Switch and VM
[ upstream commit 5b11132a8942abf26ddb80cb7ccce6ffc7fefd3f ]
If metadata sharing between E-Switch and VM (multi GVMI sharing) is
enabled, PMD creates the default metadata copy rule from register A
to register C_1 on Tx.
This rule should be created in group 0, but due to an incorrect
condition, it was created in group 1.
It prevented propagation of metadata from an application.
This patch fixes the condition by adding the missing check for
external rules, so egress group translation applies only to
application rules.
Fixes: a78425ba3793 ("net/mlx5: support flow metadata between E-Switch and VM")
Signed-off-by: Gregory Etelson <getelson at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/net/mlx5/mlx5_flow_hw.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index 75ac3bce28..bbd245ed9b 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -5348,5 +5348,6 @@ __translate_group(struct rte_eth_dev *dev,
"group index not supported");
*table_group = group + 1;
- } else if (mlx5_vport_tx_metadata_passing_enabled(priv->sh) && flow_attr->egress) {
+ } else if (mlx5_vport_tx_metadata_passing_enabled(priv->sh) &&
+ flow_attr->egress && external) {
/*
* If VM cross GVMI metadata Tx was enabled, PMD creates a default
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-26 10:16:51.160695267 +0000
+++ 0105-net-mlx5-fix-flow-metadata-sharing-with-E-Switch-and.patch 2026-02-26 10:16:47.088459836 +0000
@@ -1 +1 @@
-From 5b11132a8942abf26ddb80cb7ccce6ffc7fefd3f Mon Sep 17 00:00:00 2001
+From bf51aeb31359030e0bab39501645bbad7464a1bb Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 5b11132a8942abf26ddb80cb7ccce6ffc7fefd3f ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index eadb0af294..9cd6ae8a8d 100644
+index 75ac3bce28..bbd245ed9b 100644
@@ -30 +31 @@
-@@ -5430,5 +5430,6 @@ __translate_group(struct rte_eth_dev *dev,
+@@ -5348,5 +5348,6 @@ __translate_group(struct rte_eth_dev *dev,
More information about the stable
mailing list