Lines Matching refs:NETNS
13 readonly NETNS="ns-${TAG}"
16 ip netns add "${NETNS}"
17 ip -netns "${NETNS}" link set lo up
22 ip netns del $NETNS
52 chk_rps "empty rps_default_mask" $NETNS lo 0
60 chk_rps "changing rps_default_mask dont affect existing netns" $NETNS lo 0
62 ip link add name $VETH type veth peer netns $NETNS name $VETH
64 ip -n $NETNS link set dev $VETH up
66 chk_rps "changing rps_default_mask don't affect newly child netns[II]" $NETNS $VETH 0
68 ip netns del $NETNS
71 chk_rps "rps_default_mask is 0 by default in child netns" "$NETNS" lo 0
73 ip netns exec $NETNS sysctl -qw net.core.rps_default_mask=1
74 ip link add name $VETH type veth peer netns $NETNS name $VETH
76 chk_rps "changing rps_default_mask in child ns affects new childns devices" $NETNS $VETH 1
77 chk_rps "changing rps_default_mask in child ns don't affect existing devices" $NETNS lo 0