patch 'net/failsafe: fix MAC address pool size and replay' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:03:44 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/5407504d6003a41cd3d8f18972139b3181404a36
Thanks.
Kevin
---
>From 5407504d6003a41cd3d8f18972139b3181404a36 Mon Sep 17 00:00:00 2001
From: Sandeep Penigalapati <sandeep.penigalapati at intel.com>
Date: Thu, 15 Oct 2026 16:19:24 +0000
Subject: [PATCH] net/failsafe: fix MAC address pool size and replay
[ upstream commit 39b63df06ca9d91712d87edacb6f4fbac7fc925b ]
Two issues affect fail-safe MAC address handling:
- fs_mac_addr_add() grew the pool but set nb_mac_addr to the index of
the new entry instead of the entry count (index + 1). The pool size
was off by one and the last added address was dropped when the
configuration was replayed to a sub-device.
- fs_eth_dev_conf_apply() replayed every slot of the MAC address array
to a (re)plugged sub-device, including slots left zeroed by a
previous remove, which made rte_eth_dev_mac_addr_add() fail on the
all-zero address.
Set nb_mac_addr to index + 1 and skip zeroed slots when replaying the
MAC addresses.
Fixes: a46f8d584eb8 ("net/failsafe: add fail-safe PMD")
Fixes: ebea83f899d8 ("net/failsafe: add plug-in support")
Signed-off-by: Sandeep Penigalapati <sandeep.penigalapati at intel.com>
---
drivers/net/failsafe/failsafe_ether.c | 3 +++
drivers/net/failsafe/failsafe_ops.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/failsafe/failsafe_ether.c b/drivers/net/failsafe/failsafe_ether.c
index 1702b1a604..21779f9be8 100644
--- a/drivers/net/failsafe/failsafe_ether.c
+++ b/drivers/net/failsafe/failsafe_ether.c
@@ -178,4 +178,7 @@ fs_eth_dev_conf_apply(struct rte_eth_dev *dev,
ea = &dev->data->mac_addrs[i];
+ /* Removed addresses leave a zeroed slot. */
+ if (rte_is_zero_ether_addr(ea))
+ continue;
ret = rte_eth_dev_mac_addr_add(PORT_ID(sdev), ea,
PRIV(dev)->mac_addr_pool[i]);
diff --git a/drivers/net/failsafe/failsafe_ops.c b/drivers/net/failsafe/failsafe_ops.c
index fb18c80dc0..6a7e0d1901 100644
--- a/drivers/net/failsafe/failsafe_ops.c
+++ b/drivers/net/failsafe/failsafe_ops.c
@@ -1465,5 +1465,5 @@ fs_mac_addr_add(struct rte_eth_dev *dev,
if (index >= PRIV(dev)->nb_mac_addr) {
DEBUG("Growing mac_addrs array");
- PRIV(dev)->nb_mac_addr = index;
+ PRIV(dev)->nb_mac_addr = index + 1;
}
PRIV(dev)->mac_addr_pool[index] = vmdq;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:47.660941087 +0000
+++ 0298-net-failsafe-fix-MAC-address-pool-size-and-replay.patch 2026-12-03 12:52:39.238773918 +0000
@@ -1 +1 @@
-From 39b63df06ca9d91712d87edacb6f4fbac7fc925b Mon Sep 17 00:00:00 2001
+From 5407504d6003a41cd3d8f18972139b3181404a36 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 39b63df06ca9d91712d87edacb6f4fbac7fc925b ]
+
@@ -23 +24,0 @@
-Cc: stable at dpdk.org
@@ -44 +45 @@
-index 79aa57cb35..56c7c884a1 100644
+index fb18c80dc0..6a7e0d1901 100644
@@ -47 +48 @@
-@@ -1461,5 +1461,5 @@ fs_mac_addr_add(struct rte_eth_dev *dev,
+@@ -1465,5 +1465,5 @@ fs_mac_addr_add(struct rte_eth_dev *dev,
More information about the stable
mailing list