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
39 echo "udp gso zerocopy"
40 run_in_netns ${args} -S -z
47 run_in_netns ${args} -t
50 run_in_netns ${args} -t -z
54 local -r core_args="-l 4"
55 local -r ipv4_args="${core_args} -4 -D 127.0.0.1"
56 local -r ipv6_args="${core_args} -6 -D ::1"
59 run_tcp "${ipv4_args}"
60 run_udp "${ipv4_args}"
63 run_tcp "${ipv4_args}"
64 run_udp "${ipv6_args}"
67 if [[ $# -eq 0 ]]; then
69 elif [[ $1 == "__subprocess" ]]; then