Home
last modified time | relevance | path

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

/openbmc/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
19 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&1
34 ip netns del "${NETNS}"
41 ip netns exec "${NETNS}" ./ip_defrag -4
44 ip netns exec "${NETNS}" ./ip_defrag -4o
47 ip netns exec "${NETNS}" ./ip_defrag -6
50 ip netns exec "${NETNS}" ./ip_defrag -6o
56 ip netns exec "${NETNS}" ./ip_defrag -6
[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
62 ip link add name $VETH type veth peer netns $NETNS name $VETH
64 ip -n $NETNS link set dev $VETH up
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
[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 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}" "$@"
/openbmc/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