Searched refs:veth (Results 51 - 75 of 148) sorted by relevance

123456

/linux-master/tools/testing/selftests/net/mptcp/
H A Dsimult_flows.sh72 ip link add ns1eth1 netns "$ns1" type veth peer name ns2eth1 netns "$ns2"
73 ip link add ns1eth2 netns "$ns1" type veth peer name ns2eth2 netns "$ns2"
74 ip link add ns2eth3 netns "$ns2" type veth peer name ns3eth1 netns "$ns3"
/linux-master/tools/testing/selftests/bpf/
H A Dtest_xdp_meta.sh35 ip link add veth1 type veth peer name veth2
H A Dtest_tc_edt.sh41 ip link add veth_src type veth peer name veth_dst
H A Dtest_xdp_features.sh16 ip link add v1 type veth peer name v0 netns ${NS}
H A Dtest_xsk.sh5 # AF_XDP selftests based on veth
39 # Set up veth interfaces as per the topology shown ^^:
40 # * setup two veth interfaces
41 # ** veth<xxxx>
42 # ** veth<yyyy>
45 # * tests the veth and xsk layers of the topology
53 # Turn on XDP sockets and veth support when compiling i.e.
71 # Set up veth interfaces and leave them up so xskxceiver can be launched in a debugger:
128 ip link add ${VETH0} numtxqueues 4 numrxqueues 4 type veth peer name ${VETH1} numtxqueues 4 numrxqueues 4
/linux-master/samples/bpf/
H A Dtest_cgrp2_sock2.sh12 ip link add veth0 type veth peer name veth0b
H A Dtest_cgrp2_tc.sh13 # Names of the veth interface, net namespace...etc.
74 $IP link add $HOST_IFC type veth peer name $NS_IFC || return $?
/linux-master/net/netfilter/
H A Dnft_payload.c29 struct vlan_ethhdr *veth)
31 if (skb_copy_bits(skb, mac_off, veth, ETH_HLEN))
34 veth->h_vlan_proto = skb->vlan_proto;
35 veth->h_vlan_TCI = htons(skb_vlan_tag_get(skb));
36 veth->h_vlan_encapsulated_proto = skb->protocol;
47 struct vlan_ethhdr veth; local
55 vlanh = (u8 *) &veth;
60 skb_copy_bits(skb, mac_off, &veth, VLAN_ETH_HLEN) < 0)
62 else if (!nft_payload_rebuild_vlan_hdr(skb, mac_off, &veth))
28 nft_payload_rebuild_vlan_hdr(const struct sk_buff *skb, int mac_off, struct vlan_ethhdr *veth) argument
/linux-master/tools/testing/selftests/net/
H A Droute_localnet.sh11 ip link add name veth0 type veth peer name veth1
H A Dfib-onlink-tests.sh186 ip li add ${NETIFS[p1]} type veth peer name ${NETIFS[p2]}
187 ip li add ${NETIFS[p3]} type veth peer name ${NETIFS[p4]}
188 ip li add ${NETIFS[p5]} type veth peer name ${NETIFS[p6]}
189 ip li add ${NETIFS[p7]} type veth peer name ${NETIFS[p8]}
H A Dmsg_zerocopy.sh89 ip link add "${DEV}" mtu "${DEV_MTU}" netns "${NS1}" type veth \
H A Dio_uring_zerocopy_tx.sh95 ip link add "${DEV}" mtu "${DEV_MTU}" netns "${NS1}" type veth \
H A Dudpgro_bench.sh31 ip link add type veth
58 echo "udp gso - over veth touching data"
61 echo "udp gso and gro - over veth touching data"
68 echo "tcp - over veth touching data"
H A Darp_ndisc_untracked_subnets.sh12 ROUTER_INTF="veth-router"
16 HOST_INTF="veth-host"
39 # namespaces. veth0 is veth-router, veth1 is veth-host.
43 type veth peer name ${HOST_INTF}
73 # namespaces. veth0 is veth-router, veth1 is veth-host.
77 type veth peer name ${HOST_INTF}
H A Darp_ndisc_evict_nocarrier.sh6 # Create a veth pair and set IPs/routes on both. Then ping to establish
8 # 1 or 0. Set remote veth down which will cause local veth to go into a no
37 $IP li add veth1 type veth peer name veth2
61 ip link add name veth0 type veth peer name veth1
H A Dipsec.c3 * ipsec.c - Check xfrm on veth inside a net-ns.
18 #include <linux/veth.h>
53 /* /30 mask for one veth connection */
316 const char veth_type[] = "veth";
464 static int tunnel_set_route(int route_sock, uint32_t *route_seq, char *veth, argument
473 if (ip4_route_set(route_sock, (*route_seq)++, veth, tunsrc, tundst)) {
481 static int init_child(int nsfd, char *veth, unsigned int src, unsigned int dst) argument
497 if (ip4_addr_set(route_sock, route_seq++, veth, intsrc, PREFIX_LEN)) {
502 if (link_set_up(route_sock, route_seq++, veth)) {
503 printk("Failed to bring up %s", veth);
1954 start_child(unsigned int nr, char *veth, int test_desc_fd[2]) argument
2312 char veth[VETH_LEN]; local
[all...]
/linux-master/tools/testing/selftests/net/forwarding/
H A Drouter_mpath_nh_lib.sh71 elif [[ $kind == veth ]]; then
72 log_test_skip "HW stats not offloaded on veth topology"
H A Ddual_vxlan_bridge.sh41 # | + v1 (veth) + v3 (veth) |
46 # | + v2 (veth) NS1 (netns) | | + v4 (veth) NS2 (netns) |
62 # | | + w1 (veth) | | | | + w1 (veth) | |
68 # | | + w2 (veth) | | | | + w2 (veth) | |
244 ip link add name w1 type veth peer name w2
320 ip link add name v1 type veth pee
[all...]
/linux-master/drivers/net/
H A DMakefile34 obj-$(CONFIG_VETH) += veth.o
/linux-master/tools/testing/selftests/drivers/net/bonding/
H A Dbond_topo_2d1c.sh64 ip -n ${s_ns} link add eth${i} type veth peer name s${i} netns ${g_ns}
117 ip -n ${c_ns} link add eth0 type veth peer name c0 netns ${g_ns}
H A Dlag_lib.sh99 ip link add name lag1 type veth peer name lag1-end
103 ip link add name lag1 type veth peer name lag1-end
/linux-master/tools/testing/selftests/netfilter/
H A Dconntrack_icmp_related.sh84 ip link add $DEV netns nsclient1 type veth peer name eth1 netns nsrouter1
86 ip link add $DEV netns nsclient2 type veth peer name eth1 netns nsrouter2
89 ip link add $DEV netns nsrouter1 type veth peer name eth2 netns nsrouter2
H A Dnf_nat_edemux.sh51 # Connect the namespaces using a veth pair
52 ip link add name veth2 type veth peer name veth1
/linux-master/tools/testing/selftests/bpf/progs/
H A Dsetget_sockopt.c16 const volatile char veth[IFNAMSIZ]; variable
282 (void *)veth, sizeof(veth)))
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsetget_sockopt.c31 if (!ASSERT_OK(system("ip link add dev binddevtest1 type veth peer name binddevtest2"),
32 "add veth"))
36 "bring veth up"))
170 strcpy(skel->rodata->veth, "binddevtest1");

Completed in 156 milliseconds

123456