Home
last modified time | relevance | path

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

1234567

/linux/tools/testing/selftests/net/
H A Dtcp_ecmp_failover.sh39 $IP link set veth-s1 up
40 $IP link set veth-s2 up
42 $IP -4 addr add 192.168.1.2/24 dev veth-s1
43 $IP -4 addr add 192.168.2.2/24 dev veth-s2
46 nexthop via 192.168.1.1 dev veth-s1 weight 1 \
47 nexthop via 192.168.2.1 dev veth-s2 weight 1
49 $IP -6 addr add 2001:db8:1::2/64 dev veth-s1 nodad
50 $IP -6 addr add 2001:db8:2::2/64 dev veth-s2 nodad
53 nexthop via 2001:db8:1::1 dev veth-s1 weight 1 \
54 nexthop via 2001:db8:2::1 dev veth-s2 weight 1
[all …]
H A Dveth.sh44 ip link add name "veth$SRC" "$@" type veth \
45 peer name "veth$DST" "$@" || return 1
48 ip link set dev veth$ns netns $BASE$ns up
49 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V4$ns/24
50 ip -n $BASE$ns addr add dev veth$ns $BM_NET_V6$ns/64 nodad
62 local flag=`ip netns exec $BASE$target ethtool -k veth$target |\
92 ifindex=`ip netns exec $BASE$target cat /sys/class/net/veth$target/ifindex`
119 local dev=veth$target
145 if ! link=$(ip -n "$BASE$target" -o link show dev "veth
[all...]
H A Dsrv6_iptunnel_cache.sh108 ip link add veth-s0 netns "${NS_SRC}" type veth \
109 peer name veth-r0 netns "${NS_RTR}"
110 ip link add veth-r1 netns "${NS_RTR}" type veth \
111 peer name veth-d0 netns "${NS_DST}"
113 ip -n "${NS_SRC}" link set veth-s0 address "${SRC_MAC}"
114 ip -n "${NS_RTR}" link set veth-r0 address "${RTR_R0_MAC}"
115 ip -n "${NS_RTR}" link set veth-r1 address "${RTR_R1_MAC}"
116 ip -n "${NS_DST}" link set veth-d0 address "${DST_MAC}"
119 ip -n "${NS_SRC}" link set veth-s0 up
120 ip -n "${NS_SRC}" addr add fd00::1/64 dev veth-s0 nodad
[all …]
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 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$ns $BM_NET_V6$((3 - $ns)) vxlan6$ns 6
253 ip netns exec $NS_DST ethtool -K veth$DST generic-receive-offload on
254 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on
[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 Dsrv6_end_dx6_netfilter_test.sh27 # receives the packet on the internal veth-t100 interface, rt-1 contains the
36 # the host hs-2 through the veth-t100 interface.
62 # | | veth-t100 | | | | veth-t100 | |
84 # |fc00:21:100::6004|apply SRv6 End.DX6 nh6 cafe::1 dev veth-t100 |
101 # |fc00:12:100::6004|apply SRv6 End.DX6 nh6 cafe::2 dev veth-t100 |
150 ip link del veth-rt-1 2>/dev/null || true
151 ip link del veth-rt-2 2>/dev/null || true
170 ip link set veth-rt-${rt} netns ${nsname}
171 ip -netns ${nsname} link set veth
[all...]
H A Dsrv6_end_dx4_netfilter_test.sh27 # receives the packet on the internal veth-t100 interface, rt-1 contains the
36 # the host hs-2 through the veth-t100 interface.
62 # | | veth-t100 | | | | veth-t100 | |
84 # |fc00:21:100::6004|apply SRv6 End.DX4 nh4 10.0.0.1 dev veth-t100 |
101 # |fc00:12:100::6004|apply SRv6 End.DX4 nh4 10.0.0.2 dev veth-t100|
150 ip link del veth-rt-1 2>/dev/null || true
151 ip link del veth-rt-2 2>/dev/null || true
170 ip link set veth-rt-${rt} netns ${nsname}
171 ip -netns ${nsname} link set veth
[all...]
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.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 | |
202 ip link del veth-rt-1 2>/dev/null || true
203 ip link del veth-rt-2 2>/dev/null || true
214 ip link set veth-rt-${id} netns ${nsname}
215 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 | |
201 ip link del veth-rt-1 2>/dev/null || true
202 ip link del veth-rt-2 2>/dev/null || true
216 ip link set veth-rt-${id} netns ${nsname}
217 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
/linux/tools/testing/selftests/net/ovpn/
H A Dcommon.sh162 ip link add veth${p} netns "${server_ns}" type veth \
163 peer name veth${p} netns "${peer_ns}"
166 veth${p}
168 veth${p}
169 ip -n "${server_ns}" link set veth${p} up
171 ip -n "${peer_ns}" addr add 10.10.${p}.2/24 dev veth${p}
173 veth${p}
174 ip -n "${peer_ns}" link set veth${p} up
412 ip -n ovpn_peer0 link del veth
[all...]
/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_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()
/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}"
H A Dhsr_prp_redbox.sh32 ip link add rb_a netns "$RB" type veth peer name pe_a netns "$PEER"
33 ip link add rb_b netns "$RB" type veth peer name pe_b netns "$PEER"
34 ip link add rb_il netns "$RB" type veth peer name san_il netns "$SAN"
/linux/include/linux/
H A Dif_vlan.h366 struct vlan_ethhdr *veth; in __vlan_insert_inner_tag() local
382 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); in __vlan_insert_inner_tag()
389 veth->h_vlan_proto = vlan_proto; in __vlan_insert_inner_tag()
394 veth->h_vlan_encapsulated_proto = skb->protocol; in __vlan_insert_inner_tag()
398 veth->h_vlan_TCI = htons(vlan_tci); in __vlan_insert_inner_tag()
563 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); in __vlan_get_tag() local
565 if (!eth_type_vlan(veth->h_vlan_proto)) in __vlan_get_tag()
568 *vlan_tci = ntohs(veth->h_vlan_TCI); in __vlan_get_tag()
/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
/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
/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/rdma/
H A Drxe_ipv6.sh24 for mod in tun veth rdma_rxe; do
36 ip link add "$VETH_HOST" type veth peer name "$VETH_NS"

1234567