patch 'net/mlx5: fix redundant control rules in promiscuous mode' has been queued to stable release 23.11.7
Shani Peretz
shperetz at nvidia.com
Tue Mar 31 08:24:40 CEST 2026
Hi,
FYI, your patch has been queued to stable release 23.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/05/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/shanipr/dpdk-stable
This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/be75b095233d6b90a9274f806241d80e89f53470
Thanks.
Shani
---
>From be75b095233d6b90a9274f806241d80e89f53470 Mon Sep 17 00:00:00 2001
From: Maayan Kashani <mkashani at nvidia.com>
Date: Mon, 12 Jan 2026 11:24:38 +0200
Subject: [PATCH] net/mlx5: fix redundant control rules in promiscuous mode
[ upstream commit 43a8ff69a8c5e5b7dd01cc9a0f2aa3296cebb3a0 ]
When promiscuous mode is enabled, the device receives all traffic
regardless of destination MAC address. Previously, the code was
setting both the promiscuous flag AND the DMAC/multicast control
flow rules, which is redundant.
This patch makes the DMAC and multicast/broadcast control flow
rules conditional on NOT being in promiscuous mode. When promiscuous
mode is enabled, only the MLX5_CTRL_PROMISCUOUS flag is set.
Fixes: 9fa7c1cddb85 ("net/mlx5: create control flow rules with HWS")
Signed-off-by: Maayan Kashani <mkashani at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
drivers/net/mlx5/mlx5_trigger.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_trigger.c b/drivers/net/mlx5/mlx5_trigger.c
index d2af029311..ff4ab2d348 100644
--- a/drivers/net/mlx5/mlx5_trigger.c
+++ b/drivers/net/mlx5/mlx5_trigger.c
@@ -1554,13 +1554,17 @@ mlx5_traffic_enable_hws(struct rte_eth_dev *dev)
goto error;
if (priv->isolated)
return 0;
- if (dev->data->promiscuous)
+ if (dev->data->promiscuous) {
flags |= MLX5_CTRL_PROMISCUOUS;
- if (dev->data->all_multicast)
- flags |= MLX5_CTRL_ALL_MULTICAST;
- else
- flags |= MLX5_CTRL_BROADCAST | MLX5_CTRL_IPV4_MULTICAST | MLX5_CTRL_IPV6_MULTICAST;
- flags |= MLX5_CTRL_DMAC;
+ } else {
+ if (dev->data->all_multicast)
+ flags |= MLX5_CTRL_ALL_MULTICAST;
+ else
+ flags |= (MLX5_CTRL_BROADCAST |
+ MLX5_CTRL_IPV4_MULTICAST |
+ MLX5_CTRL_IPV6_MULTICAST);
+ flags |= MLX5_CTRL_DMAC;
+ }
if (priv->vlan_filter_n)
flags |= MLX5_CTRL_VLAN_FILTER;
return mlx5_flow_hw_ctrl_flows(dev, flags);
--
2.43.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-31 00:32:36.542849787 +0300
+++ 0081-net-mlx5-fix-redundant-control-rules-in-promiscuous-.patch 2026-03-31 00:32:29.531385000 +0300
@@ -1 +1 @@
-From 43a8ff69a8c5e5b7dd01cc9a0f2aa3296cebb3a0 Mon Sep 17 00:00:00 2001
+From be75b095233d6b90a9274f806241d80e89f53470 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 43a8ff69a8c5e5b7dd01cc9a0f2aa3296cebb3a0 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 028844e45d..b38ba9022e 100644
+index d2af029311..ff4ab2d348 100644
@@ -28,4 +29,4 @@
-@@ -1682,13 +1682,17 @@ mlx5_traffic_enable_hws(struct rte_eth_dev *dev)
- dev->data->port_id, -ret);
- goto error;
- }
+@@ -1554,13 +1554,17 @@ mlx5_traffic_enable_hws(struct rte_eth_dev *dev)
+ goto error;
+ if (priv->isolated)
+ return 0;
More information about the stable
mailing list