/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | test_ingress_egress_chaining.sh | 22 veth2="veth2$((RANDOM%899+100))" 36 ip link del $veth2 &> /dev/null 42 echo "Setup veth pairs [$veth1, $peer1], and veth pair [$veth2, $peer2]" 44 ip link add $veth2 type veth peer name $peer2 52 ip link set $veth2 up 54 echo "Add tc filter ingress->egress forwarding $veth1 <-> $veth2" 55 tc qdisc add dev $veth2 ingress 57 tc filter add dev $veth2 ingress prio 1 proto all flower \ 60 action mirred egress redirect dev $veth2 [all...] |
H A D | sctp_vrf.sh | 7 # CLIENT_NS2 (veth1) <---> (veth2) -> vrf_s2 32 ip -n $SERVER_NS link add veth2 type veth peer name veth1 netns $CLIENT_NS2 49 ip -n $SERVER_NS link set veth2 master vrf-2 53 ip -n $SERVER_NS addr add $SERVER_IP4/24 dev veth2 56 ip -n $SERVER_NS addr add $SERVER_IP6/24 dev veth2 59 ip -n $SERVER_NS link set veth2 up 61 ip -n $SERVER_NS route add table 20 $CLIENT_IP4 dev veth2 src $SERVER_IP4 64 ip -n $SERVER_NS route add table 20 $CLIENT_IP6 dev veth2 src $SERVER_IP6 141 echo -n "TEST 05: bind veth2 in server, connect from client 1, N " 142 do_test $CLIENT_NS1 veth2 [all...] |
H A D | arp_ndisc_evict_nocarrier.sh | 50 $IP li add veth1 type veth peer name veth2 53 $IP li set veth2 netns peer up 54 ip -netns peer -6 addr add $V6_ADDR1/64 dev veth2 nodad 68 # Set veth2 down, which will put veth1 in NOCARRIER state 69 ip netns exec peer ip link set veth2 down
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_xdp_meta.sh | 29 ip link add veth1 type veth peer name veth2 32 ip link set veth2 netns ns2 35 ip netns exec ns2 ip addr add 10.1.1.22/24 dev veth2 38 ip netns exec ns2 tc qdisc add dev veth2 clsact 41 ip netns exec ns2 tc filter add dev veth2 ingress bpf da obj test_xdp_meta.o sec t 44 ip netns exec ns2 ip link set dev veth2 xdp obj test_xdp_meta.o sec x 47 ip netns exec ns2 ip link set dev veth2 up
|
H A D | test_xdp_redirect.sh | 8 # (veth1, ------ (veth2, 24 ip link add veth2 index 222 type veth peer name veth22 netns ns2 27 ip link set veth2 up 38 ip link del veth2 2> /dev/null 58 ip link set dev veth2 $xdpmode obj test_xdp_redirect.o sec redirect_to_111 &> /dev/null
|
H A D | test_tc_tunnel.sh | 32 peer name veth2 mtu 1500 netns "${ns2}" 37 ip -netns "${ns2}" link set veth2 up 40 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2 42 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad 246 # Share ethernet address between tunnel/veth2 so L2 decap works. 247 ethaddr=$(ip netns exec "${ns2}" ip link show veth2 | \ 263 # expected veth2 (veth2 is where 192.168.1.2 is configured). 288 ip netns exec "${ns2}" tc qdisc add dev veth2 clsact 289 ip netns exec "${ns2}" tc filter add dev veth2 ingres [all...] |
H A D | test_xdp_vlan.sh | 151 ip link add veth1 type veth peer name veth2 153 # Move veth1 and veth2 into the respective namespaces 155 ip link set veth2 netns ns2 163 ip netns exec ns2 ethtool -K veth2 rxvlan off 166 ip netns exec ns2 ethtool -K veth2 txvlan off 176 # In ns2/veth2 create VLAN device 178 export DEVNS2=veth2
|
H A D | test_xdp_veth.sh | 11 # (veth1, (veth2, (veth3, 30 ip link del veth2 2> /dev/null 85 ip link add veth2 index 122 type veth peer name veth22 netns ns2 89 ip link set veth2 up 107 ip link set dev veth2 xdp pinned $BPF_DIR/progs/redirect_map_1
|
H A D | test_lwt_ip_encap.sh | 7 # veth1 <---> veth2 veth3 <---> veth4 (the top route) 35 # 2b. in an ingress test, a bpf LWT_IN program is installed on veth2 38 # ping: SRC->[encap at veth2:ingress]->GRE:decap->DST 131 ip link add veth1 type veth peer name veth2 140 ip link set veth2 netns ${NS2} 160 ip -netns ${NS2} link set veth2 vrf red 168 ip -netns ${NS2} addr add ${IPv4_2}/24 dev veth2 172 ip -netns ${NS2} -6 addr add ${IPv6_2}/128 nodad dev veth2 187 ip -netns ${NS2} link set dev veth2 up 214 ip -netns ${NS2} route add ${IPv4_1}/32 dev veth2 [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_xdp_meta.sh | 35 ip link add veth1 type veth peer name veth2 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
|
H A D | test_xdp_redirect.sh | 8 # (veth1, ------ (veth2, 26 ip link add veth2 index 222 type veth peer name veth22 netns ${NS2} 29 ip link set veth2 up 40 ip link del veth2 2> /dev/null 60 ip link set dev veth2 $xdpmode obj test_xdp_redirect.bpf.o sec redirect_to_111 &> /dev/null
|
H A D | test_tc_tunnel.sh | 33 peer name veth2 mtu 1500 netns "${ns2}" 38 ip -netns "${ns2}" link set veth2 up 41 ip -netns "${ns2}" -4 addr add "${ns2_v4}/24" dev veth2 43 ip -netns "${ns2}" -6 addr add "${ns2_v6}/64" dev veth2 nodad 265 # Share ethernet address between tunnel/veth2 so L2 decap works. 266 ethaddr=$(ip netns exec "${ns2}" ip link show veth2 | \ 282 # expected veth2 (veth2 is where 192.168.1.2 is configured). 301 ip netns exec "${ns2}" tc qdisc add dev veth2 clsact 302 ip netns exec "${ns2}" tc filter add dev veth2 ingres [all...] |
H A D | test_xdp_vlan.sh | 156 ip link add veth1 type veth peer name veth2 158 # Move veth1 and veth2 into the respective namespaces 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 181 # In ns2/veth2 create VLAN device 183 export DEVNS2=veth2
|
H A D | test_xdp_veth.sh | 11 # (veth1, (veth2, (veth3, 33 ip link del veth2 2> /dev/null 88 ip link add veth2 index 122 type veth peer name veth22 netns ${NS2} 92 ip link set veth2 up 110 ip link set dev veth2 xdp pinned $BPF_DIR/progs/xdp_redirect_map_1
|
H A D | test_lwt_ip_encap.sh | 7 # veth1 <---> veth2 veth3 <---> veth4 (the top route) 35 # 2b. in an ingress test, a bpf LWT_IN program is installed on veth2 38 # ping: SRC->[encap at veth2:ingress]->GRE:decap->DST 132 ip link add veth1 type veth peer name veth2 141 ip link set veth2 netns ${NS2} 161 ip -netns ${NS2} link set veth2 vrf red 169 ip -netns ${NS2} addr add ${IPv4_2}/24 dev veth2 173 ip -netns ${NS2} -6 addr add ${IPv6_2}/128 nodad dev veth2 188 ip -netns ${NS2} link set dev veth2 up 215 ip -netns ${NS2} route add ${IPv4_1}/32 dev veth2 [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/bonding/ |
H A D | bond-break-lacpdu-tx.sh | 19 # |veth1 | |veth2 | 30 ip link del veth2-bond >/dev/null 2>&1 || : 56 ip link add name veth2-bond type veth peer name veth2-end 61 ip link set veth2-bond master fbond 65 ip link set veth2-end up
|
/kernel/linux/linux-5.10/tools/testing/selftests/wireguard/ |
H A D | netns.sh | 396 # │ │ wg0 │─────────────│veth1│───────────┼────┼──│veth2│────────────│ wg0 │ │ 406 ip1 link add veth1 type veth peer name veth2 407 ip1 link set veth2 netns $netns2 411 n2 bash -c 'printf 0 > /proc/sys/net/ipv6/conf/veth2/accept_dad' 417 ip2 addr add 10.0.0.2/24 dev veth2 418 ip2 addr add fd00:aa::2/96 dev veth2 420 ip2 link set veth2 up 422 waitiface $netns2 veth2 436 ip2 link set veth2 down 438 ip2 addr flush dev veth2 [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/wireguard/ |
H A D | netns.sh | 408 # │ │ wg0 │─────────────│veth1│───────────┼────┼──│veth2│────────────│ wg0 │ │ 418 ip1 link add veth1 type veth peer name veth2 419 ip1 link set veth2 netns $netns2 423 n2 bash -c 'printf 0 > /proc/sys/net/ipv6/conf/veth2/accept_dad' 429 ip2 addr add 10.0.0.2/24 dev veth2 430 ip2 addr add fd00:aa::2/96 dev veth2 432 ip2 link set veth2 up 434 waitiface $netns2 veth2 448 ip2 link set veth2 down 450 ip2 addr flush dev veth2 [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/ |
H A D | nf_nat_edemux.sh | 50 ip link add name veth2 type veth peer name veth1 52 ip link set netns $ns2 dev veth2 59 ip netns exec $ns2 ip link set up dev veth2 60 ip netns exec $ns2 ip addr add 192.168.1.2/24 dev veth2
|
H A D | conntrack_tcp_unreplied.sh | 65 ip -net $ns1 link add name veth1 type veth peer name veth2 66 ip -net $ns1 link set netns $ns2 dev veth2 71 ip -net $ns2 link set up dev veth2 73 ip -net $ns2 addr add 10.11.11.2/24 dev veth2 76 ip netns exec $ns2 sysctl -q net.ipv4.conf.veth2.forwarding=1
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | connect4_prog.c | 91 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local 99 &veth2, sizeof(veth2))) in bind_to_device()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | connect4_prog.c | 90 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local 98 &veth2, sizeof(veth2))) in bind_to_device()
|
H A D | bind6_prog.c | 33 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local 45 &veth2, sizeof(veth2))) in bind_to_device()
|
H A D | bind4_prog.c | 27 char veth2[IFNAMSIZ] = "test_sock_addr2"; in bind_to_device() local 39 &veth2, sizeof(veth2))) in bind_to_device()
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_ipip.sh | 10 ip link add veth2 type veth peer name veth2b 19 ip link set veth2 netns at_ns2 26 ip netns exec at_ns2 ip addr add 172.16.1.200/24 dev veth2 27 ip netns exec at_ns2 ip addr add 2401:db00::3/64 dev veth2 nodad 28 ip netns exec at_ns2 ip link set dev veth2 up 167 ip link del veth2
|