/linux-master/tools/testing/selftests/net/ |
H A D | test_vxlan_under_vrf.sh | 16 # | | veth-hv | | | | veth-hv | | 27 # | | veth-tap | | | | veth-tap | | 50 ip link del veth-hv-1 2>/dev/null || true 51 ip link del veth-tap 2>/dev/null || true 69 ip link add veth-hv-1 type veth peer name veth-hv-2 73 ip link set veth [all...] |
H A D | veth.sh | 42 ip link add name veth$SRC type veth peer name veth$DST 45 ip link set dev veth$ns netns $BASE$ns up 46 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V4$ns/24 47 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V6$ns/64 nodad 59 local flag=`ip netns exec $BASE$target ethtool -k veth$target |\ 85 local dev=veth$target 146 ip netns exec $NS_SRC ethtool -L veth$SRC rx $i tx $i 147 ip netns exec $NS_DST ethtool -L veth [all...] |
H A D | udpgro_fwd.sh | 48 ip link add name veth$SRC type veth peer name veth$DST 51 ip link set dev veth$ns netns $BASE$ns 52 ip -n $BASE$ns link set dev veth$ns up 53 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V4$ns/24 54 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V6$ns/64 nodad 56 ip -n $NS_DST link set veth$DST xdp object ${BPF_FILE} section xdp 2>/dev/null 80 create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V4$((3 - $ns)) vxlan$ns 4 84 create_vxlan_endpoint $BASE$ns veth [all...] |
H A D | test_vxlan_vnifiltering.sh | 17 # ||veth-11.10 | |veth-11.20 | | ||veth-21.10 | | veth-21.20 | | 22 # | +------------+ | | | veth-21 | | 23 # | | veth-11 | | | | | | 67 # | | veth-12 | | | |veth-22 | | 71 # ||veth-12.10 | |veth [all...] |
H A D | srv6_end_dt6_l3vpn_test.sh | 35 # router rt-1 receives the packet on the internal veth-t100 interface. Such 46 # hs-t100-2 through the veth-t100 interface. 72 # | | veth-t100 | | | | veth-t100 | | 86 # | | veth-t200 | | | | veth-t200 | | 219 ip link del veth-rt-1 2>/dev/null || true 220 ip link del veth-rt-2 2>/dev/null || true 231 ip link set veth-rt-${id} netns ${nsname} 232 ip -netns ${nsname} link set veth [all...] |
H A D | srv6_end_dt4_l3vpn_test.sh | 34 # router rt-1 receives the packet on the internal veth-t100 interface. Such 45 # hs-t100-2 through the veth-t100 interface. 71 # | | veth-t100 | | | | veth-t100 | | 85 # | | veth-t200 | | | | veth-t200 | | 218 ip link del veth-rt-1 2>/dev/null || true 219 ip link del veth-rt-2 2>/dev/null || true 233 ip link set veth-rt-${id} netns ${nsname} 234 ip -netns ${nsname} link set veth [all...] |
H A D | srv6_end_dt46_l3vpn_test.sh | 44 # the router rt-1 receives the packet on the internal veth-t100 interface. Such 55 # host hs-t100-2 through the veth-t100 interface. 82 # | | veth-t100 | | | | veth-t100 | | 97 # | | veth-t200 | | | | veth-t200 | | 139 # |cafe::/64 |forward to dev veth-t100 | 143 # |10.0.0.0/24|forward to dev veth-t100 | 152 # |cafe::/64 |forward to dev veth-t200 | 156 # |10.0.0.0/24|forward to dev veth [all...] |
H A D | ioam6.sh | 198 ip link add name veth0 netns $ioam_tmp_node type veth \ 264 ip link del ioam-veth-alpha 2>/dev/null || true 265 ip link del ioam-veth-gamma 2>/dev/null || true 279 ip link add name ioam-veth-alpha netns $ioam_node_alpha type veth \ 280 peer name ioam-veth-betaL netns $ioam_node_beta 281 ip link add name ioam-veth-betaR netns $ioam_node_beta type veth \ 282 peer name ioam-veth-gamma netns $ioam_node_gamma 284 ip -netns $ioam_node_alpha link set ioam-veth [all...] |
H A D | unicast_extensions.sh | 64 # containing linked veth devices foo and bar, 91 # containing linked veth devices foo-foo1, bar1-bar 120 # Sets up veth link and tries to connect over it. 124 ip link add foo netns $foo_ns type veth peer name bar netns $bar_ns 148 ip link add foo netns $foo_ns type veth peer name foo1 netns $router_ns 149 ip link add bar netns $bar_ns type veth peer name bar1 netns $router_ns
|
H A D | ip6_gre_headroom.sh | 9 ip link add h1 type veth peer name swp1 10 ip link add h3 type veth peer name swp3
|
H A D | test_ingress_egress_chaining.sh | 4 # This test runs a simple ingress tc setup between two veth pairs, 42 echo "Setup veth pairs [$veth1, $peer1], and veth pair [$veth2, $peer2]" 43 ip link add $veth1 type veth peer name $peer1 44 ip link add $veth2 type veth peer name $peer2 62 echo "Add tc filter egress->ingress forwarding $peer1 -> $veth1, bypassing the veth pipe"
|
H A D | rps_default_mask.sh | 12 readonly VETH="veth${TAG}" 62 ip link add name $VETH type veth peer netns $NETNS name $VETH 74 ip link add name $VETH type veth peer netns $NETNS name $VETH
|
/linux-master/tools/testing/selftests/drivers/net/bonding/ |
H A D | bond_topo_3d1c.sh | 38 ip -n ${s_ns} link add eth${i} type veth peer name s${i} netns ${g_ns}
|
H A D | bond-break-lacpdu-tx.sh | 55 ip link add name veth1-bond type veth peer name veth1-end 56 ip link add name veth2-bond type veth peer name veth2-end
|
H A D | bond-lladdr-target.sh | 49 ip -n $host link add veth0 type veth peer name veth0 netns $sw 50 ip -n $host link add veth1 type veth peer name veth1 netns $sw
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | xsk_prereqs.sh | 27 if [ $(ip link add $1 type veth 2>/dev/null; echo $?;) != 0 ]; then 28 echo $msg veth kernel support not available >&2
|
H A D | test_xdp_veth.sh | 4 # Create 3 namespaces with 3 veth peers, and 87 ip link add veth1 index 111 type veth peer name veth11 netns ${NS1} 88 ip link add veth2 index 122 type veth peer name veth22 netns ${NS2} 89 ip link add veth3 index 133 type veth peer name veth33 netns ${NS3}
|
H A D | test_xdp_redirect.sh | 2 # Create 2 namespaces with two veth peers, and 25 ip link add veth1 index 111 type veth peer name veth11 netns ${NS1} 26 ip link add veth2 index 222 type veth peer name veth22 netns ${NS2}
|
H A D | test_xdping.sh | 39 ip link add veth0 type veth peer name veth1
|
H A D | test_xdp_redirect_multi.sh | 88 ip -n ${NS[$i]} link add veth0 type veth peer name veth$i netns ${NS[0]} 90 ip -n ${NS[0]} link set veth$i up 99 IFACES="$IFACES veth$i" 100 veth_mac[$i]=$(ip -n ${NS[0]} link show veth$i | awk '/link\/ether/ {print $2}')
|
/linux-master/tools/testing/selftests/net/hsr/ |
H A D | hsr_redbox.sh | 75 ip link add ns1eth1 netns "${ns1}" type veth peer name ns2eth1 netns "${ns2}" 76 ip link add ns1eth2 netns "${ns1}" type veth peer name ns2eth2 netns "${ns2}" 77 ip link add ns2eth3 netns "${ns2}" type veth peer name ns3eth1 netns "${ns3}" 78 ip link add ns3eth2 netns "${ns3}" type veth peer name ns4eth1 netns "${ns4}" 79 ip link add ns3eth3 netns "${ns3}" type veth peer name ns5eth1 netns "${ns5}"
|
/linux-master/net/netfilter/ |
H A D | nf_flow_table_inet.c | 15 struct vlan_ethhdr *veth; local 20 veth = (struct vlan_ethhdr *)skb_mac_header(skb); 21 proto = veth->h_vlan_encapsulated_proto;
|
H A D | nf_tables_trace.c | 47 struct vlan_ethhdr veth; local 50 BUILD_BUG_ON(sizeof(veth) > NFT_TRACETYPE_LL_HSIZE); 56 if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) 59 veth.h_vlan_proto = skb->vlan_proto; 60 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); 61 veth.h_vlan_encapsulated_proto = skb->protocol; 63 return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth);
|
/linux-master/include/linux/ |
H A D | if_vlan.h | 352 struct vlan_ethhdr *veth; local 365 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); 372 veth->h_vlan_proto = vlan_proto; 377 veth->h_vlan_encapsulated_proto = skb->protocol; 381 veth->h_vlan_TCI = htons(vlan_tci); 540 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); local 542 if (!eth_type_vlan(veth->h_vlan_proto)) 545 *vlan_tci = ntohs(veth->h_vlan_TCI);
|
/linux-master/samples/bpf/ |
H A D | test_cls_bpf.sh | 31 ip link add name $IFC type veth peer name pair_$IFC
|