Skip to content

Commit bae5392

Browse files
committed
selftests/net: give more time to udpgro bg processes to complete startup
Bugzilla: https://bugzilla.redhat.com/2143407 Conflicts: don't pick the hunk for udpgro_frglist.sh because we don't have this test in our tree commit cdb525c Author: Adrien Thierry <athierry@redhat.com> Date: Tue Nov 1 14:48:08 2022 -0400 selftests/net: give more time to udpgro bg processes to complete startup In some conditions, background processes in udpgro don't have enough time to set up the sockets. When foreground processes start, this results in the test failing with "./udpgso_bench_tx: sendmsg: Connection refused". For instance, this happens from time to time on a Qualcomm SA8540P SoC running CentOS Stream 9. To fix this, increase the time given to background processes to complete the startup before foreground processes start. Signed-off-by: Adrien Thierry <athierry@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Adrien Thierry <athierry@redhat.com>
1 parent fd4c189 commit bae5392

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/testing/selftests/net/udpgro.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ run_one() {
5050
echo "failed" &
5151

5252
# Hack: let bg programs complete the startup
53-
sleep 0.1
53+
sleep 0.2
5454
./udpgso_bench_tx ${tx_args}
5555
ret=$?
5656
wait $(jobs -p)
@@ -117,7 +117,7 @@ run_one_2sock() {
117117
echo "failed" &
118118

119119
# Hack: let bg programs complete the startup
120-
sleep 0.1
120+
sleep 0.2
121121
./udpgso_bench_tx ${tx_args} -p 12345
122122
sleep 0.1
123123
# first UDP GSO socket should be closed at this point

tools/testing/selftests/net/udpgro_bench.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ run_one() {
3939
ip netns exec "${PEER_NS}" ./udpgso_bench_rx -t ${rx_args} -r &
4040

4141
# Hack: let bg programs complete the startup
42-
sleep 0.1
42+
sleep 0.2
4343
./udpgso_bench_tx ${tx_args}
4444
}
4545

0 commit comments

Comments
 (0)