patch 'net/mlx5: avoid wildcard drop flow in priority discovery' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:00:46 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/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/8ab000b7541229c1fa7cced218bfdf2443c0b7a3
Thanks.
Kevin
---
>From 8ab000b7541229c1fa7cced218bfdf2443c0b7a3 Mon Sep 17 00:00:00 2001
From: Wei Yan <yanwei.wy at bytedance.com>
Date: Tue, 14 Jul 2026 14:07:51 +0800
Subject: [PATCH] net/mlx5: avoid wildcard drop flow in priority discovery
[ upstream commit a4ac0ab6426f59384b49e53e85c8c6cab0a0bbbd ]
Priority discovery installs temporary drop flows to probe supported flow
priorities. These flows match a wildcard Ethernet pattern, so they can
also match real traffic while discovery is running. On shared devices this
may temporarily drop kernel traffic and cause TCP connection timeouts.
Constrain the probe flows to match both source and destination MAC
addresses as ff:ff:ff:ff:ff:ff. This keeps the rule valid for discovery
while avoiding matches on normal Ethernet traffic.
Fixes: 3eca5f8a610e ("net/mlx5: move flow priority discovery to Verbs file")
Fixes: c5042f93a425 ("net/mlx5: discover max flow priority using DevX")
Signed-off-by: Wei Yan <yanwei.wy at bytedance.com>
Signed-off-by: Gavin Hu <gahu at nvidia.com>
Acked-by: Suanming Mou <suanmingm at nvidia.com>
---
.mailmap | 1 +
drivers/net/mlx5/mlx5_flow_dv.c | 18 ++++++++++++++++++
drivers/net/mlx5/mlx5_flow_verbs.c | 8 ++++++++
3 files changed, 27 insertions(+)
diff --git a/.mailmap b/.mailmap
index 4c378c50ee..ca5c8c90c8 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1797,4 +1797,5 @@ Wei Shen <wei1.shen at intel.com>
Wei Wang <lnykww at gmail.com>
Wei Xie <weix.xie at intel.com>
+Wei Yan <yanwei.wy at bytedance.com>
Wei Zhao <wei.zhao1 at intel.com>
Weichun Chen <weichunx.chen at intel.com>
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 90d05c7ed9..3d4ebbeef9 100644
--- a/drivers/net/mlx5/mlx5_flow_dv.c
+++ b/drivers/net/mlx5/mlx5_flow_dv.c
@@ -19768,4 +19768,20 @@ mlx5_flow_discover_dr_action_support(struct rte_eth_dev *dev)
void *flow = NULL;
int ret = -1;
+ struct rte_flow_item_eth eth;
+ struct rte_flow_item item = {
+ .type = RTE_FLOW_ITEM_TYPE_ETH,
+ .spec = ð,
+ .mask = ð,
+ };
+
+ memset(ð, 0, sizeof(eth));
+ memset(ð.hdr.dst_addr, 0xff, sizeof(eth.hdr.dst_addr));
+ memset(ð.hdr.src_addr, 0xff, sizeof(eth.hdr.src_addr));
+ flow_dv_translate_item_eth(mask.buf, &item,
+ /* inner */ false, /* group */ 0,
+ MLX5_SET_MATCHER_SW_M);
+ flow_dv_translate_item_eth(value.buf, &item,
+ /* inner */ false, /* group */ 0,
+ MLX5_SET_MATCHER_SW_V);
tbl = flow_dv_tbl_resource_get(dev, 0, 0, 0, false, NULL,
@@ -20657,4 +20673,6 @@ flow_dv_discover_priorities(struct rte_eth_dev *dev,
flow.dv.actions_n = 1;
memset(ð, 0, sizeof(eth));
+ memset(ð.hdr.dst_addr, 0xff, sizeof(eth.hdr.dst_addr));
+ memset(ð.hdr.src_addr, 0xff, sizeof(eth.hdr.src_addr));
flow_dv_translate_item_eth(matcher.mask.buf, &item,
/* inner */ false, /* group */ 0,
diff --git a/drivers/net/mlx5/mlx5_flow_verbs.c b/drivers/net/mlx5/mlx5_flow_verbs.c
index 67d199ce15..03f64298e9 100644
--- a/drivers/net/mlx5/mlx5_flow_verbs.c
+++ b/drivers/net/mlx5/mlx5_flow_verbs.c
@@ -66,4 +66,12 @@ flow_verbs_discover_priorities(struct rte_eth_dev *dev,
.type = IBV_FLOW_SPEC_ETH,
.size = sizeof(struct ibv_flow_spec_eth),
+ .val = {
+ .dst_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
+ .src_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
+ },
+ .mask = {
+ .dst_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
+ .src_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
+ },
},
.drop = {
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:42.702395360 +0000
+++ 0120-net-mlx5-avoid-wildcard-drop-flow-in-priority-discov.patch 2026-12-03 12:52:39.118938645 +0000
@@ -1 +1 @@
-From a4ac0ab6426f59384b49e53e85c8c6cab0a0bbbd Mon Sep 17 00:00:00 2001
+From 8ab000b7541229c1fa7cced218bfdf2443c0b7a3 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a4ac0ab6426f59384b49e53e85c8c6cab0a0bbbd ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -29 +30 @@
-index c5f5c7d2e1..00d1551a16 100644
+index 4c378c50ee..ca5c8c90c8 100644
@@ -32 +33 @@
-@@ -1821,4 +1821,5 @@ Wei Shen <wei1.shen at intel.com>
+@@ -1797,4 +1797,5 @@ Wei Shen <wei1.shen at intel.com>
@@ -39 +40 @@
-index 58ebcf87eb..9cb7c59b83 100644
+index 90d05c7ed9..3d4ebbeef9 100644
@@ -42 +43 @@
-@@ -19795,4 +19795,20 @@ mlx5_flow_discover_dr_action_support(struct rte_eth_dev *dev)
+@@ -19768,4 +19768,20 @@ mlx5_flow_discover_dr_action_support(struct rte_eth_dev *dev)
@@ -62,2 +63,2 @@
- tbl = mlx5_flow_dv_tbl_resource_get(dev, 0, 0, 0, false, NULL,
-@@ -20684,4 +20700,6 @@ flow_dv_discover_priorities(struct rte_eth_dev *dev,
+ tbl = flow_dv_tbl_resource_get(dev, 0, 0, 0, false, NULL,
+@@ -20657,4 +20673,6 @@ flow_dv_discover_priorities(struct rte_eth_dev *dev,
@@ -71 +72 @@
-index bb240d38d9..eb576f73d4 100644
+index 67d199ce15..03f64298e9 100644
More information about the stable
mailing list