]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: bonding: add delay before each xvlan_over_bond connectivity check
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 27 Nov 2025 14:33:10 +0000 (14:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:27 +0000 (14:03 +0100)
commit4cc8dd1aafacbd256a67feceff9b2daad5a95cc7
tree7ba7ba0183ed4a3f6bf0451eb788a3a7f4d3b9cb
parentf61d6d4e1508c94d3d35428fb6229453d6926e8e
selftests: bonding: add delay before each xvlan_over_bond connectivity check

[ Upstream commit 2c28ee720ad14f58eb88a97ec3efe7c5c315ea5d ]

Jakub reported increased flakiness in bond_macvlan_ipvlan.sh on regular
kernel, while the tests consistently pass on a debug kernel. This suggests
a timing-sensitive issue.

To mitigate this, introduce a short sleep before each xvlan_over_bond
connectivity check. The delay helps ensure neighbor and route cache
have fully converged before verifying connectivity.

The sleep interval is kept minimal since check_connection() is invoked
nearly 100 times during the test.

Fixes: 246af950b940 ("selftests: bonding: add macvlan over bond testing")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Closes: https://lore.kernel.org/netdev/20251114082014.750edfad@kernel.org
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://patch.msgid.link/20251127143310.47740-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/drivers/net/bonding/bond_macvlan_ipvlan.sh