/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 [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 220 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on 221 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on [all …]
|
H A D | test_vxlan_vnifiltering.sh | 165 ip link del veth-hv-1 2>/dev/null || true 180 ip link set veth-hv-$id netns ${hv[$id]} 181 ip -netns ${hv[$id]} link set veth-hv-$id name veth0 214 ip link add $hvvethif type veth peer name $vmvethif 302 ip link add veth-host type veth peer name veth-testns 304 ip link set veth-testns netns $testns 309 ip link del veth-host 2>/dev/null || true 390 ip link add veth-hv-1 type veth peer name veth-hv-2 423 ip link add veth-hv-1 type veth peer name veth-hv-2 456 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 | 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} 258 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 318 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} 293 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 330 local rtveth=veth-t${tid} 371 ip link add veth-rt-1 type veth peer name veth-rt-2
|
H A D | ioam6.sh | 192 ip link add name veth0 netns $ioam_tmp_node type veth \ 266 ip link add name ioam-veth-alpha netns $ioam_node_alpha type veth \ 267 peer name ioam-veth-betaL netns $ioam_node_beta &>/dev/null 268 ip link add name ioam-veth-betaR netns $ioam_node_beta type veth \ 269 peer name ioam-veth-gamma netns $ioam_node_gamma &>/dev/null 271 ip -netns $ioam_node_alpha link set ioam-veth-alpha name veth0 &>/dev/null 272 ip -netns $ioam_node_beta link set ioam-veth-betaL name veth0 &>/dev/null 273 ip -netns $ioam_node_beta link set ioam-veth [all...] |
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/net/netfilter/ |
H A D | nf_tables_trace.c | 47 struct vlan_ethhdr veth; in nf_trace_fill_ll_header() local 50 BUILD_BUG_ON(sizeof(veth) > NFT_TRACETYPE_LL_HSIZE); in nf_trace_fill_ll_header() 56 if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) in nf_trace_fill_ll_header() 59 veth.h_vlan_proto = skb->vlan_proto; in nf_trace_fill_ll_header() 60 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nf_trace_fill_ll_header() 61 veth.h_vlan_encapsulated_proto = skb->protocol; in nf_trace_fill_ll_header() 63 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 | 59 struct vlan_ethhdr *veth, _veth; in nft_inner_parse_l2l3() local 74 veth = skb_header_pointer(pkt->skb, off, sizeof(_veth), &_veth); in nft_inner_parse_l2l3() 75 if (!veth) in nft_inner_parse_l2l3() 78 outer_llproto = veth->h_vlan_encapsulated_proto; in nft_inner_parse_l2l3() 79 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/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/include/linux/ |
H A D | if_vlan.h | 352 struct vlan_ethhdr *veth; in __vlan_insert_inner_tag() local 365 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag() 372 veth->h_vlan_proto = vlan_proto; in __vlan_insert_inner_tag() 377 veth->h_vlan_encapsulated_proto = skb->protocol; in __vlan_insert_inner_tag() 381 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag() 540 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); in __vlan_get_tag() local 542 if (!eth_type_vlan(veth->h_vlan_proto)) in __vlan_get_tag() 545 *vlan_tci = ntohs(veth->h_vlan_TCI); in __vlan_get_tag()
|
/linux/tools/testing/selftests/net/netfilter/ |
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 | br_netfilter.sh | 60 if ! ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns1"; then 65 ip link add veth2 netns "$ns0" type veth peer name eth0 netns "$ns2" 66 ip link add veth3 netns "$ns0" type veth peer name eth0 netns "$ns3" 67 ip link add veth4 netns "$ns0" type veth peer name eth0 netns "$ns4"
|
H A D | nft_nat_zones.sh | 64 ip link add veth0 netns "$gw" type veth peer name eth0 netns "$srv" 79 if ! ip link add veth"$i" netns "$gw" type veth peer name eth0 netns "$cl" > /dev/null 2>&1;then 90 echo netns exec "$gw" sysctl -q net.ipv4.conf.veth"$i".arp_ignore=2 91 echo netns exec "$gw" sysctl -q net.ipv4.conf.veth"$i".rp_filter=0
|
/linux/tools/testing/selftests/bpf/ |
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 100 veth_mac[$i]=$(ip -n ${NS[0]} link show veth$i | awk '/link\/ether/ {print $2}')
|
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_lwt_seg6local.sh | 71 ip link add veth1 type veth peer name veth2 72 ip link add veth3 type veth peer name veth4 73 ip link add veth5 type veth peer name veth6 74 ip link add veth7 type veth peer name veth8 75 ip link add veth9 type veth peer name veth10
|
/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/prog_tests/ |
H A D | xdp_bonding.c | 384 int veth, bond, err; in test_xdp_bonding_attach() local 391 veth = if_nametoindex("veth"); in test_xdp_bonding_attach() 392 if (!ASSERT_GE(veth, 0, "if_nametoindex veth")) in test_xdp_bonding_attach() 399 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach() 411 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach() 429 link2 = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach()
|