Home
last modified time | relevance | path

Searched refs:veth (Results 1 - 25 of 218) sorted by relevance

123456789

/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dveth.sh42 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 Dtest_vxlan_under_vrf.sh16 # | | veth-hv | | | | veth-hv | |
27 # | | veth-tap | | | | veth-tap | |
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
[all...]
H A Dtest_vxlan_vnifiltering.sh17 # ||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 Dudpgro_fwd.sh48 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 Dsrv6_end_dt6_l3vpn_test.sh35 # 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 | |
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
[all...]
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 | |
219 ip link del veth-rt-1 2>/dev/null || true
220 ip link del veth-rt-2 2>/dev/null || true
239 ip link set veth-rt-${rt} netns ${nsname}
240 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 Dioam6.sh199 ip link add name veth0 netns ioam-tmp-node type veth \
265 ip link del ioam-veth-alpha 2>/dev/null || true
266 ip link del ioam-veth-gamma 2>/dev/null || true
284 ip link add name ioam-veth-alpha netns ioam-node-alpha type veth \
285 peer name ioam-veth-betaL netns ioam-node-beta
286 ip link add name ioam-veth-betaR netns ioam-node-beta type veth \
287 peer name ioam-veth-gamma netns ioam-node-gamma
289 ip -netns ioam-node-alpha link set ioam-veth
[all...]
H A Dunicast_extensions.sh64 # 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
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dtest_vxlan_under_vrf.sh16 # | | veth-hv | | | | veth-hv | |
27 # | | veth-tap | | | | veth-tap | |
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
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_tables_trace.c63 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()
H A Dnft_payload.c28 struct vlan_ethhdr *veth) in nft_payload_rebuild_vlan_hdr()
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()
27 nft_payload_rebuild_vlan_hdr(const struct sk_buff *skb, int mac_off, struct vlan_ethhdr *veth) nft_payload_rebuild_vlan_hdr() argument
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_tables_trace.c47 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 Dnf_flow_table_inet.c15 struct vlan_ethhdr *veth; in nf_flow_offload_inet_hook() local
20 veth = (struct vlan_ethhdr *)skb_mac_header(skb); in nf_flow_offload_inet_hook()
21 proto = veth->h_vlan_encapsulated_proto; in nf_flow_offload_inet_hook()
H A Dnft_inner.c59 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()
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/
H A Dnft_nat_zones.sh101 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
[all...]
H A Dipip-conntrack-mtu.sh94 ip link add veth0 netns ${r_a} type veth peer name veth0 netns ${r_w}
95 ip link add veth1 netns ${r_a} type veth peer name veth0 netns ${c_a}
124 ip link add veth0 netns ${r_b} type veth peer name veth1 netns ${r_w}
125 ip link add veth1 netns ${r_b} type veth peer name veth0 netns ${c_b}
/kernel/linux/linux-5.10/include/linux/
H A Dif_vlan.h347 struct vlan_ethhdr *veth; in __vlan_insert_inner_tag() local
359 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag()
366 veth->h_vlan_proto = vlan_proto; in __vlan_insert_inner_tag()
371 veth->h_vlan_encapsulated_proto = skb->protocol; in __vlan_insert_inner_tag()
375 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag()
537 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); in __vlan_get_tag() local
539 if (!eth_type_vlan(veth->h_vlan_proto)) in __vlan_get_tag()
542 *vlan_tci = ntohs(veth->h_vlan_TCI); in __vlan_get_tag()
/kernel/linux/linux-6.6/include/linux/
H A Dif_vlan.h352 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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_xdp_redirect_multi.sh88 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}')
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_xdp_veth.sh4 # 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}
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_xdp_veth.sh4 # Create 3 namespaces with 3 veth peers, and
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
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/bonding/
H A Dbond-lladdr-target.sh34 ip -n $host link add veth0 type veth peer name veth0 netns $sw
35 ip -n $host link add veth1 type veth peer name veth1 netns $sw
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_bonding.c6 * Sets up two bonded veth pairs between two fresh namespaces
146 SYS(fail, "ip link add veth1_1 type veth peer name veth2_1 netns ns_dst"); in bonding_setup()
147 SYS(fail, "ip link add veth1_2 type veth peer name veth2_2 netns ns_dst"); in bonding_setup()
173 /* Load a dummy program on sending side as with veth peer needs to have a in bonding_setup()
384 int veth, bond, err; in test_xdp_bonding_attach() local
386 if (!ASSERT_OK(system("ip link add veth type veth"), "add veth")) in test_xdp_bonding_attach()
391 veth = if_nametoindex("veth"); in test_xdp_bonding_attach()
[all...]

Completed in 11 milliseconds

123456789