/openbmc/linux/tools/testing/selftests/net/ |
H A D | test_ingress_egress_chaining.sh | 21 veth1="veth1$((RANDOM%899+100))" 35 ip link del $veth1 &> /dev/null 42 echo "Setup veth pairs [$veth1, $peer1], and veth pair [$veth2, $peer2]" 43 ip link add $veth1 type veth peer name $peer1 51 ip link set $veth1 up 54 echo "Add tc filter ingress->egress forwarding $veth1 <-> $veth2" 56 tc qdisc add dev $veth1 ingress 58 action mirred egress redirect dev $veth1 59 tc filter add dev $veth1 ingress prio 1 proto all flower \ 62 echo "Add tc filter egress->ingress forwarding $peer1 -> $veth1, bypassing the veth pipe" [all …]
|
H A D | sctp_vrf.sh | 31 ip -n $SERVER_NS link add veth1 type veth peer name veth1 netns $CLIENT_NS1 32 ip -n $SERVER_NS link add veth2 type veth peer name veth1 netns $CLIENT_NS2 34 ip -n $CLIENT_NS1 link set veth1 up 35 ip -n $CLIENT_NS1 addr add $CLIENT_IP4/24 dev veth1 36 ip -n $CLIENT_NS1 addr add $CLIENT_IP6/24 dev veth1 38 ip -n $CLIENT_NS2 link set veth1 up 39 ip -n $CLIENT_NS2 addr add $CLIENT_IP4/24 dev veth1 40 ip -n $CLIENT_NS2 addr add $CLIENT_IP6/24 dev veth1 48 ip -n $SERVER_NS link set veth1 master vrf-1 52 ip -n $SERVER_NS addr add $SERVER_IP4/24 dev veth1 [all …]
|
H A D | arp_ndisc_evict_nocarrier.sh | 28 sysctl -w net.ipv6.conf.veth1.ndisc_evict_nocarrier=1 >/dev/null 2>&1 50 $IP li add veth1 type veth peer name veth2 51 $IP li set veth1 up 52 $IP -6 addr add $V6_ADDR0/64 dev veth1 nodad 61 ip netns exec me ip -6 neigh get $V6_ADDR1 dev veth1 >/dev/null 2>&1 74 ip link add name veth0 type veth peer name veth1 76 ip link set dev veth1 netns "${PEER_NS}" 77 ip netns exec "${PEER_NS}" ip link set dev veth1 up 79 ip netns exec "${PEER_NS}" ip addr add $V4_ADDR1/24 dev veth1 80 ip netns exec ${PEER_NS} ip route add default via $V4_ADDR1 dev veth1 [all …]
|
H A D | udpgro_frglist.sh | 36 ip link set dev veth1 netns "${PEER_NS}" 37 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 38 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad 39 ip -netns "${PEER_NS}" link set dev veth1 up 40 ip netns exec "${PEER_NS}" ethtool -K veth1 rx-gro-list on 43 ip -n "${PEER_NS}" link set veth1 xdp object ${BPF_FILE} section xdp 44 tc -n "${PEER_NS}" qdisc add dev veth1 clsact 45 …tc -n "${PEER_NS}" filter add dev veth1 ingress prio 4 protocol ipv6 bpf object-file nat6to4.o sec… 46 …tc -n "${PEER_NS}" filter add dev veth1 egress prio 4 protocol ip bpf object-file nat6to4.o sectio…
|
H A D | route_localnet.sh | 11 ip link add name veth0 type veth peer name veth1 13 ip link set dev veth1 netns "${PEER_NS}" 17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=1 22 ip netns exec "${PEER_NS}" ifconfig veth1 127.25.3.14/24 up 41 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=2 58 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
|
H A D | udpgro_bench.sh | 36 ip link set dev veth1 netns "${PEER_NS}" 37 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 38 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad 39 ip -netns "${PEER_NS}" link set dev veth1 up 41 ip -n "${PEER_NS}" link set veth1 xdp object ${BPF_FILE} section xdp
|
H A D | udpgro.sh | 37 ip link set dev veth1 netns "${PEER_NS}" 38 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 39 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad 40 ip -netns "${PEER_NS}" link set dev veth1 up 41 ip -n "${PEER_NS}" link set veth1 xdp object ${BPF_FILE} section xdp 91 ip -netns "${PEER_NS}" addr add dev veth1 ${addr2}
|
H A D | fib_nexthop_nongw.sh | 78 ip -n h1 link add name veth0 type veth peer name veth1 netns h2 81 ip -n h2 link set veth1 up 84 ip -n h2 address add 192.168.1.1/32 dev veth1 85 ip -n h2 route add default dev veth1
|
H A D | fib_nexthops.sh | 183 $IP li add veth1 type veth peer name veth2 184 $IP li set veth1 up 185 $IP addr add 172.16.1.1/24 dev veth1 186 $IP -6 addr add 2001:db8:91::1/64 dev veth1 nodad 616 gws=([veth1]=172.16.1.2 [veth3]=172.16.2.2) 618 other_dev=([veth1]=veth3 [veth3]=veth1) 620 run_cmd "$IP nexthop add id 1 via ${gws["veth1"]} dev veth1" 625 for dev in veth1 veth3; do 669 gws=([veth1]=2001:db8:91::2 [veth3]=2001:db8:92::2) 671 other_dev=([veth1]=veth3 [veth3]=veth1) [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_xdp_meta.sh | 18 ip link del veth1 2> /dev/null 35 ip link add veth1 type veth peer name veth2 37 ip link set veth1 netns ${NS1} 40 ip netns exec ${NS1} ip addr add 10.1.1.11/24 dev veth1 43 ip netns exec ${NS1} tc qdisc add dev veth1 clsact 46 ip netns exec ${NS1} tc filter add dev veth1 ingress bpf da obj ${BPF_FILE} sec t 49 ip netns exec ${NS1} ip link set dev veth1 xdp obj ${BPF_FILE} sec x 52 ip netns exec ${NS1} ip link set dev veth1 up
|
H A D | test_xdp_vlan.sh | 60 ip link del veth1 2> /dev/null 130 ip link del veth1 2> /dev/null 156 ip link add veth1 type veth peer name veth2 159 ip link set veth1 netns ${NS1} 167 ip netns exec ${NS1} ethtool -K veth1 rxvlan off 172 ip netns exec ${NS1} ethtool -K veth1 txvlan off 178 ip netns exec ${NS1} ip addr add ${IPADDR1}/24 dev veth1 179 ip netns exec ${NS1} ip link set veth1 up 202 export DEVNS1=veth1
|
H A D | test_xdp_redirect.sh | 25 ip link add veth1 index 111 type veth peer name veth11 netns ${NS1} 28 ip link set veth1 up 39 ip link del veth1 2> /dev/null 51 ip link set dev veth1 $xdpmode off &> /dev/null 59 ip link set dev veth1 $xdpmode obj test_xdp_redirect.bpf.o sec redirect_to_222 &> /dev/null
|
H A D | test_xdping.sh | 39 ip link add veth0 type veth peer name veth1 42 ip addr add ${LOCAL_IP}/24 dev veth1 44 ip link set veth1 up 51 ip link del veth1 2>/dev/null
|
H A D | test_tc_tunnel.sh | 32 ip link add dev veth1 mtu 1500 netns "${ns1}" type veth \ 35 ip netns exec "${ns1}" ethtool -K veth1 tso off 37 ip -netns "${ns1}" link set veth1 up 40 ip -netns "${ns1}" -4 addr add "${ns1_v4}/24" dev veth1 42 ip -netns "${ns1}" -6 addr add "${ns1_v6}/64" dev veth1 nodad 48 ip -netns "${ns1}" -4 route add "${ns2_v4}" mtu 1450 dev veth1 49 ip -netns "${ns1}" -6 route add "${ns2_v6}" mtu 1430 dev veth1 211 ip netns exec "${ns1}" tc qdisc add dev veth1 clsact 212 ip netns exec "${ns1}" tc filter add dev veth1 egress \
|
H A D | test_tunnel.sh | 59 ip link add veth0 type veth peer name veth1 63 ip link set dev veth1 up mtu 1500 64 ip addr add dev veth1 172.16.1.200/24 93 ip addr add dev veth1 ::22/96 94 ip link set dev veth1 up 141 ip addr add dev veth1 ::22/96 142 ip link set dev veth1 up 184 ip addr add dev veth1 ::22/96 185 ip link set dev veth1 up 219 ip addr add dev veth1 ::22/96 [all …]
|
H A D | test_lwt_ip_encap.sh | 132 ip link add veth1 type veth peer name veth2 140 ip link set veth1 netns ${NS1} 154 ip -netns ${NS1} link set veth1 vrf red 168 ip -netns ${NS1} addr add ${IPv4_1}/24 dev veth1 172 ip -netns ${NS1} -6 addr add ${IPv6_1}/128 nodad dev veth1 187 ip -netns ${NS1} link set dev veth1 up 201 ip -netns ${NS1} route add ${IPv4_2}/32 dev veth1 ${VRF} 202 ip -netns ${NS1} route add default dev veth1 via ${IPv4_2} ${VRF} # go top by default 203 ip -netns ${NS1} -6 route add ${IPv6_2}/128 dev veth1 ${VRF} 204 ip -netns ${NS1} -6 route add default dev veth1 via ${IPv6_2} ${VRF} # go top by default [all …]
|
H A D | test_xdp_veth.sh | 32 ip link del veth1 2> /dev/null 87 ip link add veth1 index 111 type veth peer name veth11 netns ${NS1} 91 ip link set veth1 up 109 ip link set dev veth1 xdp pinned $BPF_DIR/progs/xdp_redirect_map_0
|
H A D | test_lwt_seg6local.sh | 71 ip link add veth1 type veth peer name veth2 77 ip link set veth1 netns ${NS1} 88 ip netns exec ${NS1} ip link set dev veth1 up 101 ip netns exec ${NS1} ip -6 addr add fb00::12/16 dev veth1 scope link 102 ip netns exec ${NS1} ip -6 route add fb00::21 dev veth1 scope link 119 ip netns exec ${NS1} ip -6 route add fb00::6 dev veth1 via fb00::21
|
/openbmc/linux/tools/testing/selftests/drivers/net/bonding/ |
H A D | bond-break-lacpdu-tx.sh | 29 ip link del veth1-bond >/dev/null 2>&1 || : 55 ip link add name veth1-bond type veth peer name veth1-end 60 ip link set veth1-bond master fbond 64 ip link set veth1-end up 70 tcpdump -n -i veth1-end -e ether proto 0x8809 >${tmp} 2>&1 &
|
H A D | bond-lladdr-target.sh | 35 ip -n $host link add veth1 type veth peer name veth1 netns $sw 49 ip -n $host link set veth1 master bond0 52 ip -n $sw link set veth1 master br0 54 ip -n $sw link set veth1 up
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | ipip-conntrack-mtu.sh | 95 ip link add veth1 netns ${r_a} type veth peer name veth0 netns ${c_a} 101 for dev in lo veth0 veth1 ipip0; do 106 ip -net ${r_a} addr add 192.168.10.1/24 dev veth1 124 ip link add veth0 netns ${r_b} type veth peer name veth1 netns ${r_w} 125 ip link add veth1 netns ${r_b} type veth peer name veth0 netns ${c_b} 132 for dev in lo veth0 veth1 ipip0; do 137 ip -net ${r_b} addr add 192.168.20.1/24 dev veth1 157 ip -net ${r_w} addr add 10.4.4.254/24 dev veth1 161 ip -net ${r_w} link set dev veth1 up mtu 1400
|
H A D | nf_nat_edemux.sh | 50 ip link add name veth2 type veth peer name veth1 51 ip link set netns $ns1 dev veth1 55 ip netns exec $ns1 ip link set up dev veth1 56 ip netns exec $ns1 ip addr add 192.168.1.1/24 dev veth1
|
H A D | bridge_brouter.sh | 35 ip link add veth1 netns ns0 type veth peer name eth0 netns ns2 39 ip -net ns0 link set veth1 up 48 ip -net ns0 link set veth1 master br0 83 ip netns exec ns0 sysctl -q net.ipv4.conf.veth1.forwarding=1
|
H A D | nft_synproxy.sh | 43 ip link add veth1 netns $nsr type veth peer name eth0 netns $ns2 45 for dev in lo veth0 veth1; do 50 ip -net $nsr addr add 10.0.2.1/24 dev veth1 53 ip netns exec $nsr sysctl -q net.ipv4.conf.veth1.forwarding=1
|
/openbmc/linux/tools/testing/selftests/wireguard/ |
H A D | netns.sh | 419 ip1 link add veth1 type veth peer name veth2 428 ip1 addr add 10.0.0.1/24 dev veth1 429 ip1 addr add fd00:aa::1/96 dev veth1 432 ip1 link set veth1 up 434 waitiface $netns1 veth1 438 ip1 addr add 10.0.0.10/24 dev veth1 439 ip1 addr del 10.0.0.1/24 dev veth1 443 ip1 addr add fd00:aa::10/96 dev veth1 444 ip1 addr del fd00:aa::1/96 dev veth1 448 ip1 link set veth1 down [all …]
|