linux-yocto/drivers/net/bonding
Hangbin Liu 3572663c55 bonding: report duplicate MAC address in all situations
[ Upstream commit 28d68d396a ]

Normally, a bond uses the MAC address of the first added slave as the bond’s
MAC address. And the bond will set active slave’s MAC address to bond’s
address if fail_over_mac is set to none (0) or follow (2).

When the first slave is removed, the bond will still use the removed slave’s
MAC address, which can lead to a duplicate MAC address and potentially cause
issues with the switch. To avoid confusion, let's warn the user in all
situations, including when fail_over_mac is set to 2 or not in active-backup
mode.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20250225033914.18617-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-04 14:40:11 +02:00
..
bond_3ad.c
bond_alb.c
bond_debugfs.c
bond_main.c bonding: report duplicate MAC address in all situations 2025-06-04 14:40:11 +02:00
bond_netlink.c
bond_options.c bonding: fix incorrect MAC address setting to receive NS messages 2025-03-28 21:58:49 +01:00
bond_procfs.c
bond_sysfs_slave.c
bond_sysfs.c
bonding_priv.h
Makefile