From: Hangbin Liu bond_miimon_link_change() rebuilds the slave array when a slave's link state changes, but it has no broadcast case, so broadcast only rebuilds usable_slaves on enslave/release. bond_miimon_inspect() then derives ignore_updelay from a stale snapshot: - if the last rebuild ran while no slave was can_tx (common for batch enslave with updelay, since new slaves start in BOND_LINK_BACK), the snapshot keeps count == 0 forever and updelay is never honored, even once other slaves are usable; - if the snapshot still lists a slave that has since gone down, ignore_updelay stays false and updelay delays recovery even when the bond has no usable links, contrary to section 13.1 paragraph 4 of the bonding documentation. Add the broadcast case so the snapshot follows link transitions the same way balance-xor does. This needs the revert of 45fc134bcfad as a prerequisite: with 45fc134bcfad applied, bond_set_slave_arr() discards the refreshed array for broadcast. Fixes: e0caeb24f538 ("net: bonding: update the slave array for broadcast mode") Signed-off-by: Hangbin Liu --- drivers/net/bonding/bond_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index d6675e87d06b..b1efbdf597ec 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -2780,6 +2780,7 @@ static void bond_miimon_link_change(struct bonding *bond, bond_alb_handle_link_change(bond, slave, link); break; case BOND_MODE_XOR: + case BOND_MODE_BROADCAST: bond_update_slave_arr(bond, NULL); break; } -- 2.56.0