Lines Matching +full:rx +full:- +full:eq

2 # SPDX-License-Identifier: GPL-2.0
8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)"
13 if [ $ret -eq 0 ]; then
19 local -r jobs="$(jobs -p)"
20 local -r ns="$(ip netns list|grep $PEER_NS)"
22 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null
23 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
29 ip -netns "${PEER_NS}" link set lo up
36 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24
37 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad
38 ip -netns "${PEER_NS}" link set dev veth1 up
39 ip netns exec "${PEER_NS}" ethtool -K veth1 gro on
43 # use 'rx' as separator between sender args and receiver args
44 local -r all="$@"
45 local -r tx_args=${all%rx*}
46 local -r rx_args=${all#*rx}
51 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -C 1000 -R 10 ${rx_args} &
59 [ "$ret" -eq 0 ] && echo "ok" || echo "failed"
64 local -r args=$@
66 printf " %-40s" "$1"
67 ./in_netns.sh $0 __subprocess $2 rx -G -r $3
71 # use 'rx' as separator between sender args and receiver args
73 local -r all="$@"
74 local -r tx_args=${all%rx*}
75 local -r rx_args=${all#*rx}
78 if [[ ${tx_args} = *-4* ]]; then
80 family=-4
89 ip -netns "${PEER_NS}" addr add dev veth1 ${addr2}
92 …ip netns exec "${PEER_NS}" $ipt_cmd -t nat -I PREROUTING -d ${addr1} -j DNAT --to-destination ${ad…
96 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -G ${family} -b ${addr1} -n 0 &
98 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -C 1000 -R 10 ${family} -b ${addr2%/*} ${rx_args} &
104 kill -INT ${PID1}
107 [ "$ret" -eq 0 ] && echo "ok" || echo "failed"
112 # use 'rx' as separator between sender args and receiver args
113 local -r all="$@"
114 local -r tx_args=${all%rx*}
115 local -r rx_args=${all#*rx}
120 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -C 1000 -R 10 ${rx_args} -p 12345 &
122 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -C 2000 -R 10 ${rx_args} &
126 ./udpgso_bench_tx ${tx_args} -p 12345
135 [ "$ret" -eq 0 ] && echo "ok" || echo "failed"
140 local -r args=$@
142 printf " %-40s" "$1"
143 ./in_netns.sh $0 __subprocess_nat $2 rx -r $3
147 local -r args=$@
149 printf " %-40s" "$1"
150 ./in_netns.sh $0 __subprocess_2sock $2 rx -G -r $3
154 local -r core_args="-l 4"
155 local -r ipv4_args="${core_args} -4 -D 192.168.1.1"
156 local -r ipv6_args="${core_args} -6 -D 2001:db8::1"
160 run_test "no GRO" "${ipv4_args} -M 10 -s 1400" "-4 -n 10 -l 1400"
163 # explicitly check we are not receiving UDP_SEGMENT cmsg (-S -1)
165 run_test "no GRO chk cmsg" "${ipv4_args} -M 10 -s 1400" "-4 -n 10 -l 1400 -S -1"
172 run_test "GRO" "${ipv4_args} -M 1 -s 14720 -S 0 " "-4 -n 1 -l 14720"
174 run_test "GRO chk cmsg" "${ipv4_args} -M 1 -s 14720 -S 0 " "-4 -n 1 -l 14720 -S 1472"
176 run_test "GRO with custom segment size" "${ipv4_args} -M 1 -s 14720 -S 500 " "-4 -n 1 -l 14720"
178 …test "GRO with custom segment size cmsg" "${ipv4_args} -M 1 -s 14720 -S 500 " "-4 -n 1 -l 14720 -S…
181 run_nat_test "bad GRO lookup" "${ipv4_args} -M 1 -s 14720 -S 0" "-n 10 -l 1472"
183 run_2sock_test "multiple GRO socks" "${ipv4_args} -M 1 -s 14720 -S 0 " "-4 -n 1 -l 14720 -S 1472"
187 run_test "no GRO" "${ipv6_args} -M 10 -s 1400" "-n 10 -l 1400"
189 run_test "no GRO chk cmsg" "${ipv6_args} -M 10 -s 1400" "-n 10 -l 1400 -S -1"
191 run_test "GRO" "${ipv6_args} -M 1 -s 14520 -S 0" "-n 1 -l 14520"
193 run_test "GRO chk cmsg" "${ipv6_args} -M 1 -s 14520 -S 0" "-n 1 -l 14520 -S 1452"
195 run_test "GRO with custom segment size" "${ipv6_args} -M 1 -s 14520 -S 500" "-n 1 -l 14520"
197 …run_test "GRO with custom segment size cmsg" "${ipv6_args} -M 1 -s 14520 -S 500" "-n 1 -l 14520 -S…
200 run_nat_test "bad GRO lookup" "${ipv6_args} -M 1 -s 14520 -S 0" "-n 10 -l 1452"
202 run_2sock_test "multiple GRO socks" "${ipv6_args} -M 1 -s 14520 -S 0 " "-n 1 -l 14520 -S 1452"
207 if [[ $# -eq 0 ]]; then