Skip to content

Commit 2c28ee7

Browse files
liuhangbinkuba-moo
authored andcommitted
selftests: bonding: add delay before each xvlan_over_bond connectivity check
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: 246af95 ("selftests: bonding: add macvlan over bond testing") Reported-by: Jakub Kicinski <[email protected]> Closes: https://lore.kernel.org/netdev/[email protected] Signed-off-by: Hangbin Liu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a6c121a commit 2c28ee7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/drivers/net/bonding/bond_macvlan_ipvlan.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ check_connection()
3030
local message=${3}
3131
RET=0
3232

33+
sleep 0.25
3334
ip netns exec ${ns} ping ${target} -c 4 -i 0.1 &>/dev/null
3435
check_err $? "ping failed"
3536
log_test "${bond_mode}/${xvlan_type}_${xvlan_mode}: ${message}"

0 commit comments

Comments
 (0)