| /linux/tools/testing/selftests/net/ |
| 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 57 local flag=`ip netns exec $BASE$target ethtool -k veth$target |\ 83 local dev=veth$target 144 ip netns exec $NS_SRC ethtool -L veth$SRC rx $i tx $i 145 ip netns exec $NS_DST ethtool -L veth$DST rx $i tx $i 150 ip netns exec $NS_SRC ethtool -L veth$SRC rx $cur_cpu tx $cur_cpu 151 ip netns exec $NS_DST ethtool -L veth$DST rx $cur_cpu tx $cur_cpu [all …]
|
| H A D | test_vxlan_under_vrf.sh | 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-hv-$id netns ${hv[$id]} 74 ip -netns ${hv[$id]} link set veth-hv-$id name veth0 100 ip link add veth-tap type veth peer name veth-hv 102 ip link set veth-tap netns ${hv[$id]} 103 ip -netns ${hv[$id]} link set veth-tap master br0 104 ip -netns ${hv[$id]} link set veth-tap up 106 ip link set veth-hv address 02:1d:8d:dd:0c:6$id [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$ns $BM_NET_V6$((3 - $ns)) vxlan6$ns 6 253 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on 254 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on [all …]
|
| H A D | test_vxlan_vnifiltering.sh | 164 ip link del veth-hv-1 2>/dev/null || true 179 ip link set veth-hv-$id netns ${hv[$id]} 180 ip -netns ${hv[$id]} link set veth-hv-$id name veth0 213 ip link add $hvvethif type veth peer name $vmvethif 301 ip link add veth-host type veth peer name veth-testns 303 ip link set veth-testns netns $testns 308 ip link del veth-host 2>/dev/null || true 389 ip link add veth-hv-1 type veth peer name veth-hv-2 422 ip link add veth-hv-1 type veth peer name veth-hv-2 455 ip link add veth-hv-1 type veth peer name veth-hv-2 [all …]
|
| H A D | srv6_end_dx6_netfilter_test.sh | 167 ip link del veth-rt-1 2>/dev/null || true 168 ip link del veth-rt-2 2>/dev/null || true 187 ip link set veth-rt-${rt} netns ${nsname} 188 ip -netns ${nsname} link set veth-rt-${rt} name veth0 213 local rtveth=veth-t${tid} 218 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 245 local rtveth=veth-t${tid} 260 encap seg6local action End.DX6 nh6 ${IPv6_HS_NETWORK}::${hsdst} dev veth-t${tid} 265 ip link add veth-rt-1 type veth peer name veth-rt-2
|
| H A D | srv6_end_dx4_netfilter_test.sh | 167 ip link del veth-rt-1 2>/dev/null || true 168 ip link del veth-rt-2 2>/dev/null || true 187 ip link set veth-rt-${rt} netns ${nsname} 188 ip -netns ${nsname} link set veth-rt-${rt} name veth0 214 local rtveth=veth-t${tid} 219 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 255 encap seg6local action End.DX4 nh4 ${IPv4_HS_NETWORK}.${hsdst} dev veth-t${tid} 260 ip link add veth-rt-1 type veth peer name veth-rt-2
|
| H A D | lwt_dst_cache_ref_loop.sh | 33 ip link add name veth0 netns $tmp_node type veth \ 87 ip link add name veth-alpha netns $alpha type veth \ 88 peer name veth-betaL netns $beta &>/dev/null 90 ip link add name veth-betaR netns $beta type veth \ 91 peer name veth-gamma netns $gamma &>/dev/null 93 ip -netns $alpha link set veth-alpha name veth0 &>/dev/null 94 ip -netns $beta link set veth-betaL name veth0 &>/dev/null 95 ip -netns $beta link set veth-betaR name veth1 &>/dev/null 96 ip -netns $gamma link set veth-gamma name veth0 &>/dev/null
|
| H A D | srv6_end_dt6_l3vpn_test.sh | 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-rt-${id} name veth0 251 local rtveth=veth-t${tid} 257 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 291 local rtveth=veth-t${tid} 323 ip link add veth-rt-1 type veth peer name veth-rt-2
|
| H A D | srv6_end_dt4_l3vpn_test.sh | 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-rt-${id} name veth0 251 local rtveth=veth-t${tid} 253 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 313 ip link add veth-rt-1 type veth peer name veth-rt-2
|
| H A D | srv6_end_dt46_l3vpn_test.sh | 249 ip link del veth-rt-1 2>/dev/null || true 250 ip link del veth-rt-2 2>/dev/null || true 261 ip link set veth-rt-${id} netns ${nsname} 262 ip -netns ${nsname} link set veth-rt-${id} name veth0 282 local rtveth=veth-t${tid} 288 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 325 local rtveth=veth-t${tid} 366 ip link add veth-rt-1 type veth peer name veth-rt-2
|
| H A D | unicast_extensions.sh | 117 ip link add foo netns $foo_ns type veth peer name bar netns $bar_ns 141 ip link add foo netns $foo_ns type veth peer name foo1 netns $router_ns 142 ip link add bar netns $bar_ns type veth peer name bar1 netns $router_ns
|
| /linux/tools/testing/selftests/net/ovpn/ |
| H A D | common.sh | 26 ip link add veth${p} netns peer0 type veth peer name veth${p} netns peer${p} 28 ip -n peer0 addr add 10.10.${p}.1/24 dev veth${p} 29 ip -n peer0 addr add fd00:0:0:${p}::1/64 dev veth${p} 30 ip -n peer0 link set veth${p} up 32 ip -n peer${p} addr add 10.10.${p}.2/24 dev veth${p} 33 ip -n peer${p} addr add fd00:0:0:${p}::2/64 dev veth${p} 34 ip -n peer${p} link set veth${p} up 95 ip -n peer0 link del veth${p} 2>/dev/null || true
|
| /linux/net/netfilter/ |
| H A D | nf_tables_trace.c | 48 struct vlan_ethhdr veth; in nf_trace_fill_ll_header() local 51 BUILD_BUG_ON(sizeof(veth) > NFT_TRACETYPE_LL_HSIZE); in nf_trace_fill_ll_header() 57 if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) in nf_trace_fill_ll_header() 60 veth.h_vlan_proto = skb->vlan_proto; in nf_trace_fill_ll_header() 61 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nf_trace_fill_ll_header() 62 veth.h_vlan_encapsulated_proto = skb->protocol; in nf_trace_fill_ll_header() 64 return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth); in nf_trace_fill_ll_header()
|
| H A D | nf_flow_table_inet.c | 15 struct vlan_ethhdr *veth; in nf_flow_offload_inet_hook() local 20 if (!pskb_may_pull(skb, skb_mac_offset(skb) + sizeof(*veth))) in nf_flow_offload_inet_hook() 23 veth = (struct vlan_ethhdr *)skb_mac_header(skb); in nf_flow_offload_inet_hook() 24 proto = veth->h_vlan_encapsulated_proto; in nf_flow_offload_inet_hook()
|
| H A D | nft_inner.c | 66 struct vlan_ethhdr *veth, _veth; in nft_inner_parse_l2l3() local 81 veth = skb_header_pointer(pkt->skb, off, sizeof(_veth), &_veth); in nft_inner_parse_l2l3() 82 if (!veth) in nft_inner_parse_l2l3() 85 outer_llproto = veth->h_vlan_encapsulated_proto; in nft_inner_parse_l2l3() 86 llproto = veth->h_vlan_proto; in nft_inner_parse_l2l3()
|
| /linux/arch/arm/boot/dts/arm/ |
| H A D | arm-realview-eb-bbrevd.dtsi | 25 veth: regulator-veth { label 27 regulator-name = "veth"; 43 vdd33a-supply = <&veth>; 44 vddvario-supply = <&veth>;
|
| /linux/tools/testing/selftests/drivers/net/bonding/ |
| H A D | bond_lacp_prio.sh | 31 ip -n "${c_ns}" link add eth0 type veth peer name eth0 netns "${s_ns}" 32 ip -n "${c_ns}" link add eth1 type veth peer name eth1 netns "${s_ns}" 34 ip -n "${c_ns}" link add eth2 type veth peer name eth0 netns "${b_ns}" 35 ip -n "${c_ns}" link add eth3 type veth peer name eth1 netns "${b_ns}"
|
| /linux/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}"
|
| H A D | link_faults.sh | 55 ip link add vethA netns "$node1" type veth peer name vethB netns "$node2" 57 ip link add vethA netns "$node2" type veth peer name vethB netns "$node3" 58 ip link add vethA netns "$node3" type veth peer name vethB netns "$node1" 110 ip link add vethA netns "$node1" type veth peer name vethA netns "$node2" 111 ip link add vethB netns "$node1" type veth peer name vethB netns "$node2"
|
| /linux/include/linux/ |
| H A D | if_vlan.h | 359 struct vlan_ethhdr *veth; in __vlan_insert_inner_tag() local 372 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag() 379 veth->h_vlan_proto = vlan_proto; in __vlan_insert_inner_tag() 384 veth->h_vlan_encapsulated_proto = skb->protocol; in __vlan_insert_inner_tag() 388 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag() 553 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); in __vlan_get_tag() local 555 if (!eth_type_vlan(veth->h_vlan_proto)) in __vlan_get_tag() 558 *vlan_tci = ntohs(veth->h_vlan_TCI); in __vlan_get_tag()
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | br_netfilter.sh | 63 if ! ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns1"; then 68 ip link add veth2 netns "$ns0" type veth peer name eth0 netns "$ns2" 69 ip link add veth3 netns "$ns0" type veth peer name eth0 netns "$ns3" 70 ip link add veth4 netns "$ns0" type veth peer name eth0 netns "$ns4"
|
| H A D | conntrack_ipip_mtu.sh | 81 ip link add veth0 netns "$r_a" type veth peer name veth0 netns "$r_w" 82 ip link add veth1 netns "$r_a" type veth peer name veth0 netns "$c_a" 111 ip link add veth0 netns "$r_b" type veth peer name veth1 netns "$r_w" 112 ip link add veth1 netns "$r_b" type veth peer name veth0 netns "$c_b"
|
| H A D | nft_concat_range.sh | 540 ip link add veth_a type veth peer name veth_b || return 1 1402 setup veth send_"${proto}" set || return ${ksft_skip} 1416 setup veth send_"${proto}" set || return ${ksft_skip} 1572 setup veth flood_"${proto}" set || return ${ksft_skip} 1672 setup veth send_"${proto}" set || return ${ksft_skip} 1721 setup veth perf set || return ${ksft_skip} 1808 setup veth send_"${proto}" set || return ${ksft_skip} 1861 setup veth send_"${proto}" set || return ${ksft_skip} 1936 setup veth send_"${proto}" set || return ${ksft_skip} 1958 setup veth send_"${proto}" set || return ${ksft_skip} [all …]
|
| /linux/tools/testing/selftests/net/tcp_ao/lib/ |
| H A D | setup.c | 164 static void link_init(const char *veth, int family, uint8_t prefix, in link_init() argument 167 if (link_set_up(veth)) in link_init() 169 if (ip_addr_add(veth, family, addr, prefix)) in link_init() 171 if (ip_route_add(veth, family, addr, dest)) in link_init()
|
| /linux/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
|