]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:05 +0000 (11:41 +0100)
commitc369b9aabf32372990429b8522a9d83e07332e52
treed5b2db8ea5ed44e9aa9a56503d5d35f0984185c3
parentbde7ba746388e1d587893aba023660a133899b94
bonding: fix link recovery in mode 2 when updelay is nonzero

[ Upstream commit f8a65ab2f3ff7410921ebbf0dc55453102c33c56 ]

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: 7c463d776017 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/bonding/bond_main.c