Lines Matching +full:rx +full:- +full:eq
2 # SPDX-License-Identifier: GPL-2.0
8 readonly PEER_NS="ns-peer-$(mktemp -u XXXXXX)"
13 local -r jobs="$(jobs -p)"
14 local -r ns="$(ip netns list|grep $PEER_NS)"
16 [ -n "${jobs}" ] && kill -INT ${jobs} 2>/dev/null
17 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
22 # use 'rx' as separator between sender args and receiver args
23 local -r all="$@"
24 local -r tx_args=${all%rx*}
25 local rx_args=${all#*rx}
27 [[ "${tx_args}" == *"-4"* ]] && rx_args="${rx_args} -4"
30 ip -netns "${PEER_NS}" link set lo up
37 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24
38 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad
39 ip -netns "${PEER_NS}" link set dev veth1 up
41 ip -n "${PEER_NS}" link set veth1 xdp object ${BPF_FILE} section xdp
42 ip netns exec "${PEER_NS}" ./udpgso_bench_rx ${rx_args} -r &
43 ip netns exec "${PEER_NS}" ./udpgso_bench_rx -t ${rx_args} -r &
50 local -r args=$@
56 local -r args=$@
58 echo "udp gso - over veth touching data"
59 run_in_netns ${args} -S 0 rx
61 echo "udp gso and gro - over veth touching data"
62 run_in_netns ${args} -S 0 rx -G
66 local -r args=$@
68 echo "tcp - over veth touching data"
69 run_in_netns ${args} -t rx
73 local -r core_args="-l 4"
74 local -r ipv4_args="${core_args} -4 -D 192.168.1.1"
75 local -r ipv6_args="${core_args} -6 -D 2001:db8::1"
86 if [ ! -f ${BPF_FILE} ]; then
88 exit -1
91 if [[ $# -eq 0 ]]; then