Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'selftests-net-use-slowwait-to-make-sure-setup-finished'

Hangbin Liu says:

====================
selftests: net: use slowwait to make sure setup finished

The two updated tests sometimes failed because the network setup hadn't
completed. Used slowwait to ensure the setup finished and the tests
always passed. I ran both tests 50 times, and all of them passed.
====================

Link: https://patch.msgid.link/20250617105101.433718-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

+6 -7
+4 -5
tools/testing/selftests/net/test_vxlan_vnifiltering.sh
··· 146 146 } 147 147 148 148 check_hv_connectivity() { 149 - ip netns exec $hv_1 ping -c 1 -W 1 $1 &>/dev/null 150 - sleep 1 151 - ip netns exec $hv_1 ping -c 1 -W 1 $2 &>/dev/null 149 + slowwait 5 ip netns exec $hv_1 ping -c 1 -W 1 $1 &>/dev/null 150 + slowwait 5 ip netns exec $hv_1 ping -c 1 -W 1 $2 &>/dev/null 152 151 153 152 return $? 154 153 } 155 154 156 155 check_vm_connectivity() { 157 - run_cmd "ip netns exec $vm_11 ping -c 1 -W 1 10.0.10.12" 156 + slowwait 5 run_cmd "ip netns exec $vm_11 ping -c 1 -W 1 10.0.10.12" 158 157 log_test $? 0 "VM connectivity over $1 (ipv4 default rdst)" 159 158 160 - run_cmd "ip netns exec $vm_21 ping -c 1 -W 1 10.0.10.22" 159 + slowwait 5 run_cmd "ip netns exec $vm_21 ping -c 1 -W 1 10.0.10.22" 161 160 log_test $? 0 "VM connectivity over $1 (ipv6 default rdst)" 162 161 } 163 162
+2 -2
tools/testing/selftests/net/vrf_route_leaking.sh
··· 275 275 276 276 277 277 # Wait for ip config to settle 278 - sleep 2 278 + slowwait 5 ip netns exec $h1 "${ping6}" -c1 -w1 ${H2_N2_IP6} >/dev/null 2>&1 279 279 } 280 280 281 281 setup_asym() ··· 370 370 ip -netns $r2 -6 addr add dev eth1 ${R2_N2_IP6}/64 nodad 371 371 372 372 # Wait for ip config to settle 373 - sleep 2 373 + slowwait 5 ip netns exec $h1 "${ping6}" -c1 -w1 ${H2_N2_IP6} >/dev/null 2>&1 374 374 } 375 375 376 376 check_connectivity()