2 # SPDX-License-Identifier: GPL-2.0
4 # Run a series of udpgso benchmarks
7 local -r jobs="$(jobs -p)"
9 if [[ "${jobs}" != "" ]]; then
10 kill -1 ${jobs} 2>/dev
/null
13 trap wake_children EXIT
19 .
/udpgso_bench_rx
-t &
21 .
/udpgso_bench_tx
${args}
27 .
/in_netns.sh
$0 __subprocess
${args}
37 run_in_netns
${args} -S
44 run_in_netns
${args} -t
47 run_in_netns
${args} -t -z
51 local -r core_args
="-l 4"
52 local -r ipv4_args
="${core_args} -4 -D 127.0.0.1"
53 local -r ipv6_args
="${core_args} -6 -D ::1"
56 run_tcp
"${ipv4_args}"
57 run_udp
"${ipv4_args}"
60 run_tcp
"${ipv4_args}"
61 run_udp
"${ipv6_args}"
64 if [[ $# -eq 0 ]]; then
66 elif [[ $1 == "__subprocess" ]]; then