Lines Matching +full:2 +full:ns
4 readonly NS="ns1-$(mktemp -u XXXXXX)"
14 ip netns add ${NS}
16 ip link add v1 type veth peer name v0 netns ${NS}
21 ip -n ${NS} link set dev v0 up
22 ip -n ${NS} addr add $V0_IP4/24 dev v0
23 ip -n ${NS} addr add $V0_IP6/64 nodad dev v0
28 ip netns exec ${NS} ethtool -K v0 gro on
29 ip netns exec ${NS} ethtool -K v0 tx-checksumming off
30 } > /dev/null 2>&1
34 ip link del v1 2> /dev/null
35 ip netns del ${NS} 2> /dev/null
36 [ "$(pidof xdp_features)" = "" ] || kill $(pidof xdp_features) 2> /dev/null
52 ip netns exec ${NS} ./xdp_features -t -f XDP_PASS \
60 ip netns exec ${NS} ./xdp_features -t -f XDP_DROP \
69 ip netns exec ${NS} ./xdp_features -t -f XDP_ABORTED \
77 ip netns exec ${NS} ./xdp_features -t -f XDP_TX \
86 ip netns exec ${NS} ./xdp_features -t -f XDP_REDIRECT \
94 ip netns exec ${NS} ./xdp_features -t -f XDP_NDO_XMIT \
103 trap cleanup 2 3 6 9