Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Regression Test:
|
|
# When the bond is configured with down/updelay and the link state of
|
|
# slave members flaps if there are no remaining members up the bond
|
|
# should immediately select a member to bring up. (from bonding.txt
|
|
# section 13.1 paragraph 4)
|
|
#
|
|
# +-------------+ +-----------+
|
|
# | client | | switch |
|
|
# | | | |
|
|
# | +--------| link1 |-----+ |
|
|
# | | +-------+ | |
|
|
# | | | | | |
|
|
# | | +-------+ | |
|
|
# | | bond | link2 | Br0 | |
|
|
# +-------------+ +-----------+
|
|
# 172.20.2.1 172.20.2.2
|
|
|
|
|
|
REQUIRE_MZ=no
|
|
REQUIRE_JQ=no
|
|
NUM_NETIFS=0
|
|
lib_dir=$(dirname "$0")
|
|
source "$lib_dir"/../../../net/forwarding/lib.sh
|
|
source "$lib_dir"/lag_lib.sh
|
|
|
|
cleanup()
|
|
{
|
|
lag_cleanup
|
|
}
|
|
|
|
trap cleanup 0 1 2
|
|
|
|
lag_setup_network
|
|
test_bond_recovery mode 2 miimon 100 updelay 0
|
|
test_bond_recovery mode 2 miimon 100 updelay 200
|
|
test_bond_recovery mode 2 miimon 100 updelay 500
|
|
test_bond_recovery mode 2 miimon 100 updelay 1000
|
|
test_bond_recovery mode 2 miimon 100 updelay 2000
|
|
test_bond_recovery mode 2 miimon 100 updelay 5000
|
|
test_bond_recovery mode 2 miimon 100 updelay 10000
|
|
|
|
exit "$EXIT_STATUS"
|