Home
last modified time | relevance | path

Searched refs:veth (Results 1 – 25 of 153) sorted by relevance

1234567

/linux/tools/testing/selftests/net/
H A Dtest_vxlan_under_vrf.sh50 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 Dtest_vxlan_vnifiltering.sh164 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 Dsrv6_end_dx6_netfilter_test.sh167 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 Dsrv6_end_dx4_netfilter_test.sh167 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 Dlwt_dst_cache_ref_loop.sh33 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 Dsrv6_end_dt6_l3vpn_test.sh219 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 Dsrv6_end_dt4_l3vpn_test.sh34 # 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 Dsrv6_end_dt46_l3vpn_test.sh44 # 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 Dunicast_extensions.sh117 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
H A Dip6_gre_headroom.sh9 ip link add h1 type veth peer name swp1
10 ip link add h3 type veth peer name swp3
/linux/arch/arm/boot/dts/arm/
H A Darm-realview-eb-bbrevd.dtsi25 veth: regulator-veth { label
27 regulator-name = "veth";
43 vdd33a-supply = <&veth>;
44 vddvario-supply = <&veth>;
/linux/net/netfilter/
H A Dnf_tables_trace.c48 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 Dnf_flow_table_inet.c15 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 Dnft_inner.c66 struct vlan_ethhdr *veth, _veth; in nft_inner_parse_l2l3()
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()
59 struct vlan_ethhdr *veth, _veth; nft_inner_parse_l2l3() local
/linux/tools/testing/selftests/net/hsr/
H A Dhsr_redbox.sh75 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/tools/testing/selftests/net/netfilter/
H A Dconntrack_ipip_mtu.sh81 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 Dbr_netfilter.sh63 if ! ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns1"; then
64 echo "SKIP: Can't create veth device"
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"
73 ip -net "$ns0" link set "veth$i" up
83 ip -net "$ns0" link set "veth$i" master br0
H A Dnft_nat_zones.sh64 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
89 echo netns exec "$gw" ip link set "veth$i" up
90 echo netns exec "$gw" sysctl -q net.ipv4.conf.veth"$i".arp_ignore=2
99 echo netns exec "$gw" ip addr add 10.1.0.2/24 dev "veth$i"
100 echo netns exec "$gw" ip addr add dead:1::2/64 dev "veth$i" nodad
103 echo netns exec "$gw" ip route add 10.1.0.0/24 dev "veth$i" table $((1000+i))
104 echo netns exec "$gw" ip route add dead:1::0/64 dev "veth$i" table $((1000+i))
168 echo \"veth"
[all...]
/linux/tools/testing/selftests/bpf/
H A Dtest_xdp_redirect_multi.sh
H A Dxsk_prereqs.sh27 if [ $(ip link add $1 type veth 2>/dev/null; echo $?;) != 0 ]; then
28 echo $msg veth kernel support not available >&2
H A Dtest_lwt_seg6local.sh
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsetup.c164 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 Dxdp_bonding.c384 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()
/linux/tools/testing/selftests/drivers/net/bonding/
H A Dbond-break-lacpdu-tx.sh55 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 Dbond-lladdr-target.sh49 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

1234567