Home
last modified time | relevance | path

Searched refs:NETNS (Results 1 – 10 of 10) sorted by relevance

/linux/tools/testing/selftests/net/
H A Dip_defrag.sh11 readonly NETNS="ns-$(mktemp -u XXXXXX)"
14 ip netns add "${NETNS}"
15 ip -netns "${NETNS}" link set lo up
17 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_high_thresh=9000000 >/dev/null 2>&1
18 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_low_thresh=7000000 >/dev/null 2>&1
19 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&1
21 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_high_thresh=9000000 >/dev/null 2>&1
22 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_low_thresh=7000000 >/dev/null 2>&1
23 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&1
25 …ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_high_thresh=9000000 >/dev/null…
[all …]
H A Drps_default_mask.sh13 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
[all …]
H A Dbind_bhash.sh5 readonly NETNS="ns-$(mktemp -u XXXXXX)"
39 ip netns add "${NETNS}"
40 ip -netns "${NETNS}" link add veth0 type veth peer name veth1
41 ip -netns "${NETNS}" link set lo up
42 ip -netns "${NETNS}" link set veth0 up
43 ip -netns "${NETNS}" link set veth1 up
46 ip -netns "${NETNS}" addr add $addr_v6 nodad dev veth0
48 ip -netns "${NETNS}" addr add $addr_v4 dev lo
53 ip netns del "${NETNS}"
62 ip netns exec "${NETNS}" sh -c \
[all …]
H A Dvlan_hw_filter.sh4 readonly NETNS="ns-$(mktemp -u XXXXXX)"
9 ip netns del $NETNS
19 ip netns add ${NETNS}
20 ip netns exec ${NETNS} ip link add bond0 type bond mode 0
21 ip netns exec ${NETNS} ip link add bond_slave_1 type veth peer veth2
22 ip netns exec ${NETNS} ip link set bond_slave_1 master bond0
23 ip netns exec ${NETNS} ethtool -K bond0 rx-vlan-filter off
24 ip netns exec ${NETNS} ip link add link bond_slave_1 name bond_slave_1.0 type vlan id 0
25 ip netns exec ${NETNS} ip link add link bond0 name bond0.0 type vlan id 0
26 ip netns exec ${NETNS} ip link set bond_slave_1 nomaster
[all …]
H A Dtcp_fastopen_backup_key.sh10 readonly NETNS="ns-$(mktemp -u XXXXXX)"
13 ip netns add "${NETNS}"
14 ip -netns "${NETNS}" link set lo up
15 ip netns exec "${NETNS}" sysctl -w net.ipv4.tcp_fastopen=3 \
20 ip netns del "${NETNS}"
29 ip netns exec "${NETNS}" ip tcp_metrics flush
30 ip netns exec "${NETNS}" ./tcp_fastopen_backup_key "$1"
31 val=$(ip netns exec "${NETNS}" nstat -az | \
H A Dreuseaddr_ports_exhausted.sh11 readonly NETNS="ns-$(mktemp -u XXXXXX)"
14 ip netns add "${NETNS}"
15 ip -netns "${NETNS}" link set lo up
16 ip netns exec "${NETNS}" \
19 ip netns exec "${NETNS}" \
24 ip netns del "${NETNS}"
31 ip netns exec "${NETNS}" ./reuseaddr_ports_exhausted
H A Din_netns.sh8 readonly NETNS="ns-$(mktemp -u XXXXXX)"
11 ip netns add "${NETNS}"
12 ip -netns "${NETNS}" link set lo up
16 ip netns del "${NETNS}"
22 ip netns exec "${NETNS}" "$@"
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_helpers.h21 struct nstoken *token = open_netns(NETNS); \
32 return system("ip netns add " NETNS); in netns_create()
37 return system("ip netns del " NETNS ">/dev/null 2>&1"); in netns_delete()
H A Dlwt_reroute.c51 #define NETNS "ns_lwt_reroute" macro
H A Dlwt_redirect.c56 #define NETNS "ns_lwt_redirect" macro