DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/bonding: fix the log MAC address restore failure
@ 2026-06-29 13:58 Evgeny Sokolov
  2026-07-21 10:37 ` Sokolov Evgeny
  2026-07-22 18:20 ` Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: Evgeny Sokolov @ 2026-06-29 13:58 UTC (permalink / raw)
  To: Thomas Monjalon, Chas Williams, Min Hu (Connor), Declan Doherty
  Cc: dev, stable, chas3, Evgeny Sokolov

Log an error when rte_eth_dev_default_mac_addr_set() fails while
restoring the default MAC address of a member device removed from a
bonding device.
This improves visibility of failures without changing the existing
behavior.

Fixes: aa7791ba8de0 ("net/bonding: fix setting slave MAC addresses")
Cc: chas3@att.com

Signed-off-by: Evgeny Sokolov <Evgeny.Sokolov@infotecs.ru>
Cc: stable@dpdk.org
---
 .mailmap                               | 1 +
 drivers/net/bonding/rte_eth_bond_api.c | 8 ++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.mailmap b/.mailmap
index 8e1153ce58..ddbaaf744f 100644
--- a/.mailmap
+++ b/.mailmap
@@ -461,6 +461,7 @@ Evan Swanson <evan.swanson@intel.com>
 Evgeny Efimov <evgeny.efimov@intel.com>
 Evgeny Im <evgeny.im@oktetlabs.com>
 Evgeny Schemeilin <evgenys@amazon.com>
+Evgeny Sokolov <Evgeny.Sokolov@infotecs.ru>
 Fabio Pricoco <fabio.pricoco@intel.com>
 Fady Bader <fady@mellanox.com>
 Faicker Mo <faicker.mo@ucloud.cn>
diff --git a/drivers/net/bonding/rte_eth_bond_api.c b/drivers/net/bonding/rte_eth_bond_api.c
index 9e5df67c18..da2b538b3c 100644
--- a/drivers/net/bonding/rte_eth_bond_api.c
+++ b/drivers/net/bonding/rte_eth_bond_api.c
@@ -706,8 +706,12 @@ __eth_bond_member_remove_lock_free(uint16_t bonding_port_id,
 			&rte_eth_devices[bonding_port_id].data->port_id);
 
 	/* Restore original MAC address of member device */
-	rte_eth_dev_default_mac_addr_set(member_port_id,
-			&internals->members[member_idx].persisted_mac_addr);
+	if (rte_eth_dev_default_mac_addr_set(member_port_id,
+			&internals->members[member_idx].persisted_mac_addr)) {
+		RTE_BOND_LOG(ERR,
+				"Failed to restore MAC address on member port %u",
+				member_port_id);
+	}
 
 	/* remove additional MAC addresses from the member */
 	member_remove_mac_addresses(bonding_eth_dev, member_port_id);
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-22 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-29 13:58 [PATCH] net/bonding: fix the log MAC address restore failure Evgeny Sokolov
2026-07-21 10:37 ` Sokolov Evgeny
2026-07-22 18:20 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox