Skip to content

Commit 745dd36

Browse files
author
Herton R. Krzesinski
committed
Merge: selftests/net: give more time to udpgro bg processes to complete startup
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1643 selftests/net: give more time to udpgro bg processes to complete startup Bugzilla: https://bugzilla.redhat.com/2143407 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> Approved-by: Eric Chanudet <echanude@redhat.com> Approved-by: Hangbin Liu <haliu@redhat.com> Approved-by: Brian Masney <bmasney@redhat.com> Approved-by: Andrea Claudi <aclaudi@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 63b65fc + bae5392 commit 745dd36

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)