Lines Matching refs:DST
8 readonly DST=1
11 readonly NS_DST=$BASE$DST
42 ip link add name veth$SRC type veth peer name veth$DST
44 for ns in $SRC $DST; do
106 ip netns exec $BASE$SRC ping -qc 1 $BM_NET_V4$DST >/dev/null
110 ip netns exec $BASE$DST ./udpgso_bench_rx -C 1000 -R 10 &
114 ip netns exec $NS_SRC ./udpgso_bench_tx -4 -s 13000 -S 1300 -M 1 -D $BM_NET_V4$DST
147 ip netns exec $NS_DST ethtool -L veth$DST rx $i tx $i
153 ip netns exec $NS_DST ethtool -L veth$DST rx $cur_cpu tx $cur_cpu
165 ip netns exec $NS_SRC ./udpgso_bench_tx -4 -s 1000 -M 300 -D $BM_NET_V4$DST
175 ip netns exec $NS_DST ethtool -L veth$DST rx 3 tx 3
198 ip netns exec $NS_DST ethtool -L veth$DST rx 2 tx 1
230 chk_gro_flag " - peer gro flag" $DST off
232 chk_tso_flag " - peer tso flag" $DST on
239 ip netns exec $NS_DST ethtool -K veth$DST gro on
240 chk_gro_flag "with gro on - gro flag" $DST on
243 chk_tso_flag " - peer tso flag" $DST on
245 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
250 ip -n $NS_DST link set dev veth$DST up
251 ip -n $NS_DST link set dev veth$DST xdp object ${BPF_FILE} section xdp
252 chk_gro_flag "gro vs xdp while down - gro flag off" $DST off
253 ip -n $NS_DST link set dev veth$DST down
254 chk_gro_flag " - after down" $DST off
255 ip -n $NS_DST link set dev veth$DST xdp off
256 chk_gro_flag " - after xdp off" $DST off
257 ip -n $NS_DST link set dev veth$DST up
258 chk_gro_flag " - after up" $DST off
260 chk_gro_flag " - after peer xdp" $DST off
264 ip -n $NS_DST link set dev veth$DST up
265 ip -n $NS_DST link set dev veth$DST xdp object ${BPF_FILE} section xdp
266 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on
267 chk_gro_flag "gro vs xdp while down - gro flag on" $DST on
268 ip -n $NS_DST link set dev veth$DST down
269 chk_gro_flag " - after down" $DST on
270 ip -n $NS_DST link set dev veth$DST xdp off
271 chk_gro_flag " - after xdp off" $DST on
272 ip -n $NS_DST link set dev veth$DST up
273 chk_gro_flag " - after up" $DST on
275 chk_gro_flag " - after peer xdp" $DST on
279 chk_channels "default channels" $DST 1 1
281 ip -n $NS_DST link set dev veth$DST down
282 ip netns exec $NS_DST ethtool -K veth$DST gro on
283 chk_gro_flag "with gro enabled on link down - gro flag" $DST on
286 chk_tso_flag " - peer tso flag" $DST on
287 ip -n $NS_DST link set dev veth$DST up
289 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
298 ip netns exec $NS_DST ethtool -L veth$DST tx 2
299 chk_channels "setting tx channels" $DST 1 2
304 ip netns exec $NS_DST ethtool -L veth$DST rx 3 tx 3
305 chk_channels "setting both rx and tx channels" $DST 3 3
310 ip netns exec $NS_DST ethtool -L veth$DST combined 2 2>/dev/null
311 chk_channels "bad setting: combined channels" $DST $CUR_RX $CUR_TX
313 ip netns exec $NS_DST ethtool -L veth$DST tx $((CPUS + 1)) 2>/dev/null
314 chk_channels "setting invalid channels nr" $DST $CUR_RX $CUR_TX
318 ip netns exec $NS_DST ethtool -L veth$DST rx 1 tx 2 2>/dev/null
321 ip -n $NS_DST link set dev veth$DST xdp object ${BPF_FILE} \
327 ip netns exec $NS_DST ethtool -L veth$DST rx 2
328 ip -n $NS_DST link set dev veth$DST xdp object ${BPF_FILE} \
331 ip netns exec $NS_DST ethtool -L veth$DST rx 1 2>/dev/null &&\
341 chk_channels "setting invalid channels nr" $DST 2 2
344 ip -n $NS_DST link set dev veth$DST xdp object ${BPF_FILE} section xdp 2>/dev/null
345 chk_gro_flag "with xdp attached - gro flag" $DST off
348 chk_tso_flag " - peer tso flag" $DST on
349 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
351 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on
352 chk_gro_flag " - gro flag with GRO on" $DST on
356 ip -n $NS_DST link set dev veth$DST down
358 chk_gro_flag " - after dev off, flag" $DST on
361 ip netns exec $NS_DST ethtool -K veth$DST gro on
362 ip -n $NS_DST link set dev veth$DST xdp off
363 chk_gro_flag " - after gro on xdp off, gro flag" $DST on
366 chk_tso_flag " - peer tso flag" $DST on
369 ip netns exec $NS_DST ethtool -L veth$DST tx 1
370 chk_channels "decreasing tx channels with device down" $DST 2 1
373 ip -n $NS_DST link set dev veth$DST up
380 ip -n $NS_DST link set dev veth$DST down
382 ip netns exec $NS_DST ethtool -L veth$DST tx 2
383 chk_channels "increasing tx channels with device down" $DST 2 2
384 ip -n $NS_DST link set dev veth$DST up
388 ip netns exec $NS_DST ethtool -K veth$DST gro off