/Linux-v5.15/tools/testing/selftests/net/ |
D | veth.sh | 41 ip link add name veth$SRC type veth peer name veth$DST 44 ip link set dev veth$ns netns $BASE$ns up 45 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V4$ns/24 46 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V6$ns/64 nodad 58 local flag=`ip netns exec $BASE$target ethtool -k veth$target |\ 84 local dev=veth$target 145 ip netns exec $NS_SRC ethtool -L veth$SRC rx $i tx $i 146 ip netns exec $NS_DST ethtool -L veth$DST rx $i tx $i 151 ip netns exec $NS_SRC ethtool -L veth$SRC rx $cur_cpu tx $cur_cpu 152 ip netns exec $NS_DST ethtool -L veth$DST rx $cur_cpu tx $cur_cpu [all …]
|
D | test_vxlan_under_vrf.sh | 49 ip link del veth-hv-1 2>/dev/null || true 50 ip link del veth-tap 2>/dev/null || true 65 ip link add veth-hv-1 type veth peer name veth-hv-2 70 ip link set veth-hv-$hv netns hv-$hv 71 ip -netns hv-$hv link set veth-hv-$hv name veth0 98 ip link add veth-tap type veth peer name veth-hv 100 ip link set veth-tap netns hv-$id 101 ip -netns hv-$id link set veth-tap master br0 102 ip -netns hv-$id link set veth-tap up 104 ip link set veth-hv netns vm-$id [all …]
|
D | udpgro_fwd.sh | 41 ip link add name veth$SRC type veth peer name veth$DST 44 ip link set dev veth$ns netns $BASE$ns 45 ip -n $BASE$ns link set dev veth$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 49 ip -n $NS_DST link set veth$DST xdp object ../bpf/xdp_dummy.o section xdp_dummy 2>/dev/null 73 create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V4$((3 - $ns)) vxlan$ns 4 77 create_vxlan_endpoint $BASE$ns veth$ns $BM_NET_V6$((3 - $ns)) vxlan6$ns 6 204 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on 213 ip -n $NS_DST addr add dev veth$DST $BM_NET$DST_NAT/$SUFFIX [all …]
|
D | srv6_end_dt6_l3vpn_test.sh | 220 ip link del veth-rt-1 2>/dev/null || true 221 ip link del veth-rt-2 2>/dev/null || true 236 ip link set veth-rt-${rt} netns ${nsname} 237 ip -netns ${nsname} link set veth-rt-${rt} name veth0 256 local rtveth=veth-t${tid} 264 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 300 local rtveth=veth-t${tid} 332 ip link add veth-rt-1 type veth peer name veth-rt-2
|
D | srv6_end_dt4_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 235 ip link set veth-rt-${rt} netns ${nsname} 236 ip -netns ${nsname} link set veth-rt-${rt} name veth0 253 local rtveth=veth-t${tid} 257 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 324 ip link add veth-rt-1 type veth peer name veth-rt-2
|
D | srv6_end_dt46_l3vpn_test.sh | 250 ip link del veth-rt-1 2>/dev/null || true 251 ip link del veth-rt-2 2>/dev/null || true 266 ip link set veth-rt-${rt} netns ${nsname} 267 ip -netns ${nsname} link set veth-rt-${rt} name veth0 287 local rtveth=veth-t${tid} 295 ip -netns ${hsname} link add veth0 type veth peer name ${rtveth} 339 local rtveth=veth-t${tid} 380 ip link add veth-rt-1 type veth peer name veth-rt-2
|
D | ioam6.sh | 197 ip link add name veth0 netns ioam-tmp-node type veth \ 239 ip link del ioam-veth-alpha 2>/dev/null || true 240 ip link del ioam-veth-gamma 2>/dev/null || true 253 ip link add name ioam-veth-alpha netns ioam-node-alpha type veth \ 254 peer name ioam-veth-betaL netns ioam-node-beta 255 ip link add name ioam-veth-betaR netns ioam-node-beta type veth \ 256 peer name ioam-veth-gamma netns ioam-node-gamma 258 ip -netns ioam-node-alpha link set ioam-veth-alpha name veth0 259 ip -netns ioam-node-beta link set ioam-veth-betaL name veth0 260 ip -netns ioam-node-beta link set ioam-veth-betaR name veth1 [all …]
|
D | unicast_extensions.sh | 126 ip link add foo netns foo-ns type veth peer name bar netns bar-ns 153 ip link add foo netns foo-ns type veth peer name foo1 netns router-ns 154 ip link add bar netns bar-ns type veth peer name bar1 netns router-ns
|
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
|
D | vrf_route_leaking.sh | 232 ip -netns h1 link add eth0 type veth peer name r1h1 235 ip -netns h2 link add eth0 type veth peer name r1h2 313 ip -netns h1 link add eth0 type veth peer name r1h1 316 ip -netns h1 link add eth1 type veth peer name r2h1 319 ip -netns h2 link add eth0 type veth peer name r1h2 322 ip -netns h2 link add eth1 type veth peer name r2h2
|
D | fib-onlink-tests.sh | 189 ip li add ${NETIFS[p1]} type veth peer name ${NETIFS[p2]} 190 ip li add ${NETIFS[p3]} type veth peer name ${NETIFS[p4]} 191 ip li add ${NETIFS[p5]} type veth peer name ${NETIFS[p6]} 192 ip li add ${NETIFS[p7]} type veth peer name ${NETIFS[p8]}
|
/Linux-v5.15/net/netfilter/ |
D | nf_tables_trace.c | 63 struct vlan_ethhdr veth; in nf_trace_fill_ll_header() local 66 BUILD_BUG_ON(sizeof(veth) > NFT_TRACETYPE_LL_HSIZE); in nf_trace_fill_ll_header() 72 if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) in nf_trace_fill_ll_header() 75 veth.h_vlan_proto = skb->vlan_proto; in nf_trace_fill_ll_header() 76 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nf_trace_fill_ll_header() 77 veth.h_vlan_encapsulated_proto = skb->protocol; in nf_trace_fill_ll_header() 79 return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth); in nf_trace_fill_ll_header()
|
D | nft_payload.c | 28 struct vlan_ethhdr *veth) in nft_payload_rebuild_vlan_hdr() argument 30 if (skb_copy_bits(skb, mac_off, veth, ETH_HLEN)) in nft_payload_rebuild_vlan_hdr() 33 veth->h_vlan_proto = skb->vlan_proto; in nft_payload_rebuild_vlan_hdr() 34 veth->h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nft_payload_rebuild_vlan_hdr() 35 veth->h_vlan_encapsulated_proto = skb->protocol; in nft_payload_rebuild_vlan_hdr() 46 struct vlan_ethhdr veth; in nft_payload_copy_vlan() local 54 vlanh = (u8 *) &veth; in nft_payload_copy_vlan() 59 skb_copy_bits(skb, mac_off, &veth, VLAN_ETH_HLEN) < 0) in nft_payload_copy_vlan() 61 else if (!nft_payload_rebuild_vlan_hdr(skb, mac_off, &veth)) in nft_payload_copy_vlan()
|
D | nf_flow_table_ip.c | 145 struct vlan_ethhdr *veth; in nf_flow_tuple_encap() local 156 veth = (struct vlan_ethhdr *)skb_mac_header(skb); in nf_flow_tuple_encap() 157 tuple->encap[i].id = ntohs(veth->h_vlan_TCI); in nf_flow_tuple_encap() 261 struct vlan_ethhdr *veth; in nf_flow_skb_encap_protocol() local 265 veth = (struct vlan_ethhdr *)skb_mac_header(skb); in nf_flow_skb_encap_protocol() 266 if (veth->h_vlan_encapsulated_proto == proto) { in nf_flow_skb_encap_protocol()
|
/Linux-v5.15/tools/testing/selftests/netfilter/ |
D | nft_nat_zones.sh | 101 ip link add veth0 netns "$gw" type veth peer name eth0 netns "$srv" 121 ip link add veth$i netns "$gw" type veth peer name eth0 netns "$cl" > /dev/null 2>&1 133 echo netns exec "$gw" ip link set veth$i up 134 echo netns exec "$gw" sysctl -q net.ipv4.conf.veth$i.arp_ignore=2 135 echo netns exec "$gw" sysctl -q net.ipv4.conf.veth$i.rp_filter=0 144 echo netns exec "$gw" ip addr add 10.1.0.2/24 dev veth$i 145 echo netns exec "$gw" ip addr add dead:1::2/64 dev veth$i 148 echo netns exec "$gw" ip route add 10.1.0.0/24 dev veth$i table $((1000+i)) 149 echo netns exec "$gw" ip route add dead:1::0/64 dev veth$i table $((1000+i))
|
D | ipip-conntrack-mtu.sh | 93 ip link add veth0 netns ${r_a} type veth peer name veth0 netns ${r_w} 94 ip link add veth1 netns ${r_a} type veth peer name veth0 netns ${c_a} 123 ip link add veth0 netns ${r_b} type veth peer name veth1 netns ${r_w} 124 ip link add veth1 netns ${r_b} type veth peer name veth0 netns ${c_b}
|
D | bridge_brouter.sh | 30 ip link add veth0 netns ns0 type veth peer name eth0 netns ns1 35 ip link add veth1 netns ns0 type veth peer name eth0 netns ns2
|
/Linux-v5.15/tools/testing/selftests/bpf/ |
D | xsk_prereqs.sh | 11 SPECFILE=veth.spec 28 if [ $(ip link add $1 type veth 2>/dev/null; echo $?;) != 0 ]; then 29 echo $msg veth kernel support not available >&2
|
D | test_xdp_redirect_multi.sh | 50 ip link del veth$i 2> /dev/null 82 ip link add veth$i type veth peer name veth0 netns ns$i 83 ip link set veth$i up 94 veth_mac[$i]=$(ip link show veth$i | awk '/link\/ether/ {print $2}')
|
D | test_xdp_veth.sh | 84 ip link add veth1 index 111 type veth peer name veth11 netns ns1 85 ip link add veth2 index 122 type veth peer name veth22 netns ns2 86 ip link add veth3 index 133 type veth peer name veth33 netns ns3
|
D | test_lwt_seg6local.sh | 64 ip link add veth1 type veth peer name veth2 65 ip link add veth3 type veth peer name veth4 66 ip link add veth5 type veth peer name veth6 67 ip link add veth7 type veth peer name veth8 68 ip link add veth9 type veth peer name veth10
|
D | test_xdp_redirect.sh | 23 ip link add veth1 index 111 type veth peer name veth11 netns ns1 24 ip link add veth2 index 222 type veth peer name veth22 netns ns2
|
/Linux-v5.15/include/linux/ |
D | if_vlan.h | 339 struct vlan_ethhdr *veth; in __vlan_insert_inner_tag() local 351 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag() 358 veth->h_vlan_proto = vlan_proto; in __vlan_insert_inner_tag() 363 veth->h_vlan_encapsulated_proto = skb->protocol; in __vlan_insert_inner_tag() 367 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag() 529 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)skb->data; in __vlan_get_tag() local 531 if (!eth_type_vlan(veth->h_vlan_proto)) in __vlan_get_tag() 534 *vlan_tci = ntohs(veth->h_vlan_TCI); in __vlan_get_tag()
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | arm-realview-eb-bbrevd.dtsi | 25 veth: fixedregulator@0 { label 27 regulator-name = "veth"; 43 vdd33a-supply = <&veth>; 44 vddvario-supply = <&veth>;
|
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_bonding.c | 387 int veth, bond, err; in test_xdp_bonding_attach() local 394 veth = if_nametoindex("veth"); in test_xdp_bonding_attach() 395 if (!ASSERT_GE(veth, 0, "if_nametoindex veth")) in test_xdp_bonding_attach() 402 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach() 414 link = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach() 432 link2 = bpf_program__attach_xdp(skeletons->xdp_dummy->progs.xdp_dummy_prog, veth); in test_xdp_bonding_attach()
|