bonding: fix link recovery in mode 2 when updelay is nonzero
authorJonathan Toppins <jtoppins@redhat.com>
Tue, 22 Nov 2022 21:24:29 +0000 (16:24 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 24 Nov 2022 04:14:48 +0000 (20:14 -0800)
commitf8a65ab2f3ff7410921ebbf0dc55453102c33c56
tree303dcc4ff90b5b78242edf0733ef25c09679a9cc
parentd43eff0b85ae28dd2b95dab18a3e7dcb813d7bc1
bonding: fix link recovery in mode 2 when updelay is nonzero

Before this change when a bond in mode 2 lost link, all of its slaves
lost link, the bonding device would never recover even after the
expiration of updelay. This change removes the updelay when the bond
currently has no usable links. Conforming to bonding.txt section 13.1
paragraph 4.

Fixes: 41f891004063 ("bonding: ignore updelay param when there is no active slave")
Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c