patch 'net/mlx5/windows: fix match criteria in flow creation' has been queued to stable release 24.11.4
Kevin Traynor
ktraynor at redhat.com
Fri Nov 21 12:21:21 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/26/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/21276ae4916a85e3b14c88cbd57b3b4283ccf16b
Thanks.
Kevin
---
>From 21276ae4916a85e3b14c88cbd57b3b4283ccf16b Mon Sep 17 00:00:00 2001
From: Itai Sharoni <isharoni at nvidia.com>
Date: Mon, 17 Nov 2025 10:45:00 +0200
Subject: [PATCH] net/mlx5/windows: fix match criteria in flow creation
[ upstream commit e0b87fa079b9f35750f4d6fb71a00ab0ca19d170 ]
Currently the Windows implementation hardcodes match criteria to
MLX5_MATCH_OUTER_HEADERS when creating flow rules, which prevents
matching on inner headers and other criteria types like NVGRE.
The fix uses the matcher's match_criteria_enable attribute instead
of hardcoding OUTER_HEADERS, and moves the assignment outside the
action switch block to apply to all cases.
NVGRE item type is also added to the supported items list.
Fixes: 1d194496b9d1 ("net/mlx5: create flow rule on Windows")
Signed-off-by: Itai Sharoni <isharoni at nvidia.com>
Acked-by: Bing Zhao <bingz at nvidia.com>
---
.mailmap | 1 +
drivers/net/mlx5/windows/mlx5_flow_os.c | 4 ++--
drivers/net/mlx5/windows/mlx5_flow_os.h | 1 +
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.mailmap b/.mailmap
index 723b168e04..f48a6a0462 100644
--- a/.mailmap
+++ b/.mailmap
@@ -612,4 +612,5 @@ Ilyes Ben Hamouda <ilyes.ben_hamouda at 6wind.com>
Intiyaz Basha <intiyaz.basha at caviumnetworks.com>
Isaac Boukris <iboukris at gmail.com>
+Itai Sharoni <isharoni at nvidia.com>
Itamar Gozlan <igozlan at nvidia.com>
Itsuro Oda <oda at valinux.co.jp>
diff --git a/drivers/net/mlx5/windows/mlx5_flow_os.c b/drivers/net/mlx5/windows/mlx5_flow_os.c
index 7a625fb880..15c6fc5613 100644
--- a/drivers/net/mlx5/windows/mlx5_flow_os.c
+++ b/drivers/net/mlx5/windows/mlx5_flow_os.c
@@ -220,7 +220,7 @@ mlx5_flow_os_create_flow(void *matcher, void *match_value,
break;
}
- MLX5_SET(devx_fs_rule_add_in, in, match_criteria_enable,
- MLX5_MATCH_OUTER_HEADERS);
}
+ MLX5_SET(devx_fs_rule_add_in, in, match_criteria_enable,
+ mlx5_matcher->attr.match_criteria_enable);
*flow = mlx5_glue->devx_fs_rule_add(mlx5_matcher->ctx, in, sizeof(in));
return (*flow) ? 0 : -1;
diff --git a/drivers/net/mlx5/windows/mlx5_flow_os.h b/drivers/net/mlx5/windows/mlx5_flow_os.h
index 2cd4e95325..c087bca4be 100644
--- a/drivers/net/mlx5/windows/mlx5_flow_os.h
+++ b/drivers/net/mlx5/windows/mlx5_flow_os.h
@@ -48,4 +48,5 @@ mlx5_flow_os_item_supported(int item)
case RTE_FLOW_ITEM_TYPE_VLAN:
case RTE_FLOW_ITEM_TYPE_ESP:
+ case RTE_FLOW_ITEM_TYPE_NVGRE:
return true;
default:
--
2.51.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2025-11-21 11:05:12.605731015 +0000
+++ 0097-net-mlx5-windows-fix-match-criteria-in-flow-creation.patch 2025-11-21 11:05:09.656201992 +0000
@@ -1 +1 @@
-From e0b87fa079b9f35750f4d6fb71a00ab0ca19d170 Mon Sep 17 00:00:00 2001
+From 21276ae4916a85e3b14c88cbd57b3b4283ccf16b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e0b87fa079b9f35750f4d6fb71a00ab0ca19d170 ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -23 +23,0 @@
- doc/guides/nics/mlx5.rst | 4 ++++
@@ -26 +26 @@
- 4 files changed, 8 insertions(+), 2 deletions(-)
+ 3 files changed, 4 insertions(+), 2 deletions(-)
@@ -29 +29 @@
-index efc66fd48c..2f089326ff 100644
+index 723b168e04..f48a6a0462 100644
@@ -32,2 +32,2 @@
-@@ -640,4 +640,5 @@ Intiyaz Basha <intiyaz.basha at caviumnetworks.com>
- Ioana Ciornei <ioana.ciornei at nxp.com>
+@@ -612,4 +612,5 @@ Ilyes Ben Hamouda <ilyes.ben_hamouda at 6wind.com>
+ Intiyaz Basha <intiyaz.basha at caviumnetworks.com>
@@ -38,13 +37,0 @@
-diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst
-index 2cf95578de..51d7637fba 100644
---- a/doc/guides/nics/mlx5.rst
-+++ b/doc/guides/nics/mlx5.rst
-@@ -1232,4 +1232,8 @@ On Windows, the features are limited:
- - L4 steering rules for port RSS of IP, UDP, TCP
-
-+- Tunnel protocol support:
-+
-+ - NVGRE (requires DevX dynamic insertion mode)
-+
-
- .. _mlx5_multiproc:
More information about the stable
mailing list