patch 'net/mlx5: reset promiscuous modes on device close' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:00:50 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/fd0b9d0f08600893a14392b53a4dd26b5bb058de

Thanks.

Kevin

---
>From fd0b9d0f08600893a14392b53a4dd26b5bb058de Mon Sep 17 00:00:00 2001
From: David Marchand <david.marchand at redhat.com>
Date: Fri, 31 Jul 2026 11:23:32 +0200
Subject: [PATCH] net/mlx5: reset promiscuous modes on device close

[ upstream commit 963565124c497cd771de610f69128f60a0c4b2e4 ]

Since the DPDK port is backed by a kernel netdevice, leaving this
netdevice in promiscuous mode may have unexpected consequences.

Reset promiscuous and all multicast modes on close.

Fixes: dd4bb90bc3cb ("net/mlx5: use Netlink to enable promisc/allmulti mode")

Signed-off-by: David Marchand <david.marchand at redhat.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
 drivers/net/mlx5/mlx5.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c
index 3cb19ac6bb..7676c77a4d 100644
--- a/drivers/net/mlx5/mlx5.c
+++ b/drivers/net/mlx5/mlx5.c
@@ -2462,4 +2462,14 @@ mlx5_dev_close(struct rte_eth_dev *dev)
 	if (priv->reta_idx != NULL)
 		mlx5_free(priv->reta_idx);
+	if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) {
+		if (mlx5_os_get_promisc(dev)) {
+			DRV_LOG(DEBUG, "port %u resetting promiscuous mode", dev->data->port_id);
+			mlx5_os_set_promisc(dev, 0);
+		}
+		if (mlx5_os_get_allmulti(dev)) {
+			DRV_LOG(DEBUG, "port %u resetting all multicast mode", dev->data->port_id);
+			mlx5_os_set_allmulti(dev, 0);
+		}
+	}
 	if (sh->dev_cap.vf)
 		mlx5_os_mac_addr_flush(dev);
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:42.824895773 +0000
+++ 0124-net-mlx5-reset-promiscuous-modes-on-device-close.patch	2026-12-03 12:52:39.125938650 +0000
@@ -1 +1 @@
-From 963565124c497cd771de610f69128f60a0c4b2e4 Mon Sep 17 00:00:00 2001
+From fd0b9d0f08600893a14392b53a4dd26b5bb058de Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 963565124c497cd771de610f69128f60a0c4b2e4 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index fd01f188ff..5ddbd72b54 100644
+index 3cb19ac6bb..7676c77a4d 100644
@@ -24 +25 @@
-@@ -2499,4 +2499,14 @@ mlx5_dev_close(struct rte_eth_dev *dev)
+@@ -2462,4 +2462,14 @@ mlx5_dev_close(struct rte_eth_dev *dev)



More information about the stable mailing list