/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_lwt_ip_encap.sh | 6 # NS1 NS2 NS3 21 # NS1/NS2 are configured to route packets to IPv*_GRE via IP*_8 26 # 1. routes NS2->IPv*_DST are brought down, so the only way a ping 48 readonly NS2="ns2-$(mktemp -u XXXXXX)" 112 ip netns add "${NS2}" 117 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.all.rp_filter=0 120 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.default.rp_filter=0 125 ip netns exec ${NS2} sysctl -wq net.ipv6.conf.all.accept_dad=0 128 ip netns exec ${NS2} sysctl -wq net.ipv6.conf.default.accept_dad=0 136 ip netns exec ${NS2} sysct [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_lwt_ip_encap.sh | 6 # NS1 NS2 NS3 21 # NS1/NS2 are configured to route packets to IPv*_GRE via IP*_8 26 # 1. routes NS2->IPv*_DST are brought down, so the only way a ping 49 readonly NS2="ns2-$(mktemp -u XXXXXX)" 113 ip netns add "${NS2}" 118 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.all.rp_filter=0 121 ip netns exec ${NS2} sysctl -wq net.ipv4.conf.default.rp_filter=0 126 ip netns exec ${NS2} sysctl -wq net.ipv6.conf.all.accept_dad=0 129 ip netns exec ${NS2} sysctl -wq net.ipv6.conf.default.accept_dad=0 137 ip netns exec ${NS2} sysct [all...] |
H A D | test_xdp_vlan.sh | 8 readonly NS2="ns2-$(mktemp -u XXXXXX)" 55 echo " ip netns exec ${NS2} bash" 62 ip netns del ${NS2} 2> /dev/null 132 ip netns del ${NS2} 2> /dev/null 150 ip netns add ${NS2} 160 ip link set veth2 netns ${NS2} 168 ip netns exec ${NS2} ethtool -K veth2 rxvlan off 171 ip netns exec ${NS2} ethtool -K veth2 txvlan off 184 ip netns exec ${NS2} ip link add link $DEVNS2 name $DEVNS2.$VLAN type vlan id $VLAN 185 ip netns exec ${NS2} i [all...] |
H A D | test_xdp_meta.sh | 7 readonly NS2="ns2-$(mktemp -u XXXXXX)" 20 ip netns del ${NS2} 2> /dev/null 31 ip netns add ${NS2} 38 ip link set veth2 netns ${NS2} 41 ip netns exec ${NS2} ip addr add 10.1.1.22/24 dev veth2 44 ip netns exec ${NS2} tc qdisc add dev veth2 clsact 47 ip netns exec ${NS2} tc filter add dev veth2 ingress bpf da obj ${BPF_FILE} sec t 50 ip netns exec ${NS2} ip link set dev veth2 xdp obj ${BPF_FILE} sec x 53 ip netns exec ${NS2} ip link set dev veth2 up 56 ip netns exec ${NS2} pin [all...] |
H A D | test_xdp_redirect.sh | 5 # NS1(veth11) NS2(veth22) 14 readonly NS2="ns2-$(mktemp -u XXXXXX)" 23 ip netns add ${NS2} 26 ip link add veth2 index 222 type veth peer name veth22 netns ${NS2} 31 ip -n ${NS2} link set dev veth22 up 34 ip -n ${NS2} addr add 10.1.1.22/24 dev veth22 42 ip netns del ${NS2} 2> /dev/null 58 ip -n ${NS2} link set veth22 $xdpmode obj xdp_dummy.bpf.o sec xdp &> /dev/null 63 ip netns exec ${NS2} ping -c 1 10.1.1.11 &> /dev/null; then
|
H A D | test_lwt_seg6local.sh | 4 # NS1 ---- NS2 ---- NS3 ---- NS4 ---- NS5 ---- NS6 8 # All IPv6 packets going to fb00::/16 through NS2 will be encapsulated in a 28 readonly NS2="ns2-$(mktemp -u XXXXXX)" 52 ip netns del ${NS2} 2> /dev/null 63 ip netns add ${NS2} 78 ip link set veth2 netns ${NS2} 79 ip link set veth3 netns ${NS2} 89 ip netns exec ${NS2} ip link set dev veth2 up 90 ip netns exec ${NS2} ip link set dev veth3 up 103 ip netns exec ${NS2} i [all...] |
H A D | test_xdp_veth.sh | 8 # NS1(veth11) NS2(veth22) NS3(veth33) 26 readonly NS2="ns2-$(mktemp -u XXXXXX)" 36 ip netns del ${NS2} 2> /dev/null 84 ip netns add ${NS2} 88 ip link add veth2 index 122 type veth peer name veth22 netns ${NS2} 99 ip -n ${NS2} link set dev veth22 up 114 ip -n ${NS2} link set dev veth22 xdp obj xdp_tx.bpf.o sec xdp
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | bareudp.sh | 24 # * NS1 and NS2 are the intermediate namespaces. They use a bareudp device to 70 # | | NS2 | 115 readonly NS2=$(mktemp -u ns2-XXXXXXXX) 137 # Create the four network namespaces used by the script (NS0, NS1, NS2 and NS3) 145 ip netns add "${NS2}" || exit_cleanup "${NS0}" "${NS1}" 146 ip netns add "${NS3}" || exit_cleanup "${NS0}" "${NS1}" "${NS2}" 153 exit_cleanup "${NS0}" "${NS1}" "${NS2}" "${NS3}" 185 # NS1 with NS2, etc.), 191 for ns in "${NS0}" "${NS1}" "${NS2}" "${NS3}"; do 196 ip link add name veth12 netns "${NS1}" type veth peer name veth21 netns "${NS2}" [all...] |
H A D | icmp.sh | 22 NS2=ns2 36 ip netns del $NS2 43 ip netns add $NS2 46 ip -netns $NS1 link add veth0 type veth peer name veth0 netns $NS2 48 ip -netns $NS2 link set dev veth0 up 51 ip -netns $NS2 addr add $H2_IP6/64 dev veth0 nodad 53 ip -netns $NS2 route add $RT2 via inet6 $H1_IP6 56 ip netns exec $NS2 sysctl -qw net.ipv4.icmp_ratelimit=0 net.ipv4.ip_forward=1
|
H A D | io_uring_zerocopy_tx.sh | 16 readonly NS2="${NSPREFIX}2" 82 ip netns del "${NS2}" 94 ip netns add "${NS2}" 97 peer name "${DEV}" mtu "${DEV_MTU}" netns "${NS2}" 101 ip -netns "${NS2}" link set "${DEV}" up 105 ip -netns "${NS2}" link set dev "${DEV}" address 06:06:06:06:06:06 109 ip -netns "${NS2}" addr add 192.168.1.2/24 dev "${DEV}" 111 ip -netns "${NS2}" addr add fd::2/64 dev "${DEV}" nodad 120 ip netns exec "${NS2}" "${BIN_RX}" "-${IP}" -t 2 -C 2 -S "${SADDR}" -D "${DADDR}" -r "${RXMODE}" &
|
H A D | msg_zerocopy.sh | 15 readonly NS2="${NSPREFIX}2" 76 ip netns del "${NS2}" 88 ip netns add "${NS2}" 91 peer name "${DEV}" mtu "${DEV_MTU}" netns "${NS2}" 95 ip -netns "${NS2}" link set "${DEV}" up 99 ip -netns "${NS2}" link set dev "${DEV}" address 06:06:06:06:06:06 103 ip -netns "${NS2}" addr add 192.168.1.2/24 dev "${DEV}" 105 ip -netns "${NS2}" addr add fd::2/64 dev "${DEV}" nodad 114 ip netns exec "${NS2}" "${BIN}" "-${IP}" -i "${DEV}" -t 2 -C 2 -S "${SADDR}" -D "${DADDR}" ${ARGS} -r "${RXMODE}" &
|
H A D | so_txtime.sh | 14 readonly NS2="${NSPREFIX}2" 22 ip netns del "${NS2}" 30 ip netns add "${NS2}" 33 peer name "${DEV}" netns "${NS2}" 37 ip -netns "${NS2}" link set "${DEV}" up 41 ip -netns "${NS2}" link set dev "${DEV}" address 06:06:06:06:06:06 45 ip -netns "${NS2}" addr add 192.168.1.2/24 dev "${DEV}" 47 ip -netns "${NS2}" addr add fd::2/64 dev "${DEV}" nodad 67 ip netns exec "${NS2}" "${BIN}" -"${IP}" -c "${CLOCK}" -t "${START}" -S "${SADDR}" -D "${DADDR}" "${RXARGS}" -r &
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | msg_zerocopy.sh | 15 readonly NS2="${NSPREFIX}2" 76 ip netns del "${NS2}" 88 ip netns add "${NS2}" 91 peer name "${DEV}" mtu "${DEV_MTU}" netns "${NS2}" 95 ip -netns "${NS2}" link set "${DEV}" up 99 ip -netns "${NS2}" link set dev "${DEV}" address 06:06:06:06:06:06 103 ip -netns "${NS2}" addr add 192.168.1.2/24 dev "${DEV}" 105 ip -netns "${NS2}" addr add fd::2/64 dev "${DEV}" nodad 114 ip netns exec "${NS2}" "${BIN}" "-${IP}" -i "${DEV}" -t 2 -C 2 -S "${SADDR}" -D "${DADDR}" ${ARGS} -r "${RXMODE}" &
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | xfrm_info.c | 6 * NS0 namespace | NS1 namespace | NS2 namespace 39 * 3) ping reaches the other namespace (NS1 or NS2 based on which if_id was 56 #define NS2 "xfrm_test_ns2" macro 109 SYS_NOFAIL("test -f /var/run/netns/" NS2 " && ip netns delete " NS2); in cleanup() 116 SYS(fail, "ip netns add " NS2); in config_underlay() 125 /* NS0 <-> NS2 [veth02 <-> veth20] */ in config_underlay() 126 SYS(fail, "ip link add veth02 netns " NS0 " type veth peer name veth20 netns " NS2); in config_underlay() 129 SYS(fail, "ip -net " NS2 " addr add " IP4_ADDR_VETH20 "/24 dev veth20"); in config_underlay() 130 SYS(fail, "ip -net " NS2 " lin in config_underlay() [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_lwt_bpf.sh | 8 NS2=lwt_ns2 46 ip netns delete $NS2 2> /dev/null 367 setup_one_veth $NS2 $VETH2 $VETH3 $IPVETH2 $IPVETH3
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | test_lwt_bpf.sh | 8 NS2=lwt_ns2 49 ip netns delete $NS2 2> /dev/null 370 setup_one_veth $NS2 $VETH2 $VETH3 $IPVETH2 $IPVETH3
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_state.h | 22 * E.g. NS2(conn, C_CONNECTED, peer, R_SECONDARY) 40 #define NS2(T1, S1, T2, S2) \ macro
|
H A D | drbd_nl.c | 2727 rv = conn_request_state(connection, NS2(conn, C_DISCONNECTING, pdsk, D_OUTDATED), 0); in conn_try_disconnect() 2740 rv = conn_request_state(connection, NS2(conn, C_DISCONNECTING, in conn_try_disconnect()
|
H A D | drbd_receiver.c | 4608 conn_request_state(peer_device->connection, NS2(conn, C_PROTOCOL_ERROR, susp, 0), CS_HARD); in receive_state()
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_state.h | 22 * E.g. NS2(conn, C_CONNECTED, peer, R_SECONDARY) 40 #define NS2(T1, S1, T2, S2) \ macro
|
H A D | drbd_nl.c | 2670 rv = conn_request_state(connection, NS2(conn, C_DISCONNECTING, pdsk, D_OUTDATED), 0); in conn_try_disconnect() 2683 rv = conn_request_state(connection, NS2(conn, C_DISCONNECTING, in conn_try_disconnect()
|
H A D | drbd_receiver.c | 4561 conn_request_state(peer_device->connection, NS2(conn, C_PROTOCOL_ERROR, susp, 0), CS_HARD); in receive_state()
|