Searched refs:veth (Results 1 - 25 of 148) sorted by path

123456

/linux-master/samples/bpf/
H A Dtest_cls_bpf.sh31 ip link add name $IFC type veth peer name pair_$IFC
H A Dlwt_len_hist.sh23 ip link add $VETH0 type veth peer name $VETH1
H A Dtc_l2_redirect.sh19 $IP link add ve1 type veth peer name vens1
20 $IP link add ve2 type veth peer name vens2
H A Dtest_cgrp2_sock2.sh12 ip link add veth0 type veth peer name veth0b
/linux-master/tools/testing/selftests/bpf/
H A Dtest_sock_addr.sh29 ip link add dev ${TEST_IF} type veth peer name ${TEST_IF_PEER}
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Dmirror_gre.sh54 ip link add name v1 type veth peer name v2
/linux-master/tools/testing/selftests/net/
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-master/tools/testing/selftests/netfilter/
H A Dbridge_brouter.sh30 ip link add veth0 netns ns0 type veth peer name eth0 netns ns1
32 echo "SKIP: Can't create veth device"
35 ip link add veth1 netns ns0 type veth peer name eth0 netns ns2
/linux-master/drivers/net/
H A DMakefile34 obj-$(CONFIG_VETH) += veth.o
H A Dtap.c825 } veth; local
826 veth.h_vlan_proto = skb->vlan_proto;
827 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb));
836 ret = copy_to_iter(&veth, sizeof(veth), iter);
837 if (ret != sizeof(veth) || !iov_iter_count(iter))
H A Dtun.c219 struct veth { struct
2150 struct veth veth; local
2152 veth.h_vlan_proto = skb->vlan_proto;
2153 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb));
2161 ret = copy_to_iter(&veth, sizeof(veth), iter);
2162 if (ret != sizeof(veth) || !iov_iter_count(iter))
H A Dveth.c3 * drivers/net/veth.c
22 #include <linux/veth.h>
31 #define DRV_NAME "veth"
1428 /* veth only receives frames when its peer sends one
1835 * veth behavior
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c4763 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); local
4764 __be16 vlan_proto = veth->h_vlan_proto;
4772 vlanid = ntohs(veth->h_vlan_TCI);
4773 memmove(skb->data + VLAN_HLEN, veth, ETH_ALEN * 2);
/linux-master/drivers/net/ethernet/toshiba/
H A Dps3_gelic_net.c743 struct vlan_ethhdr *veth; local
754 veth = skb_push(skb, VLAN_HLEN);
759 veth->h_vlan_proto = cpu_to_be16(ETH_P_8021Q);
760 veth->h_vlan_TCI = htons(tag);
/linux-master/drivers/net/vmxnet3/
H A Dvmxnet3_drv.c1455 struct vlan_ethhdr *veth; member in union:__anon1669
1475 hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IP));
1482 hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IPV6));
/linux-master/drivers/s390/net/
H A Dqeth_core_main.c3844 struct vlan_ethhdr *veth = vlan_eth_hdr(skb); local
3876 if (veth->h_vlan_proto == htons(ETH_P_8021Q))
3877 return ~ntohs(veth->h_vlan_TCI) >>
H A Dqeth_l2_main.c163 struct vlan_ethhdr *veth = vlan_eth_hdr(skb); local
186 if (veth->h_vlan_proto == htons(ETH_P_8021Q)) {
188 hdr->hdr.l2.vlan_id = ntohs(veth->h_vlan_TCI);
H A Dqeth_l3_main.c1631 struct vlan_ethhdr *veth = vlan_eth_hdr(skb); local
1657 } else if (veth->h_vlan_proto == htons(ETH_P_8021Q)) {
1659 hdr->hdr.l3.vlan_id = ntohs(veth->h_vlan_TCI);
/linux-master/include/linux/
H A Dif_vlan.h352 struct vlan_ethhdr *veth; local
365 veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN);
372 veth->h_vlan_proto = vlan_proto;
377 veth->h_vlan_encapsulated_proto = skb->protocol;
381 veth->h_vlan_TCI = htons(vlan_tci);
540 struct vlan_ethhdr *veth = skb_vlan_eth_hdr(skb); local
542 if (!eth_type_vlan(veth->h_vlan_proto))
545 *vlan_tci = ntohs(veth->h_vlan_TCI);
/linux-master/net/8021q/
H A Dvlan_dev.c103 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)(skb->data); local
113 veth->h_vlan_proto != vlan->vlan_proto) {
509 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)(skb->data); local
511 return __vlan_get_protocol(skb, veth->h_vlan_proto, NULL);
/linux-master/net/netfilter/
H A Dnf_flow_table_inet.c15 struct vlan_ethhdr *veth; local
20 veth = (struct vlan_ethhdr *)skb_mac_header(skb);
21 proto = veth->h_vlan_encapsulated_proto;
H A Dnf_flow_table_ip.c144 struct vlan_ethhdr *veth; local
155 veth = (struct vlan_ethhdr *)skb_mac_header(skb);
156 tuple->encap[i].id = ntohs(veth->h_vlan_TCI);
279 struct vlan_ethhdr *veth; local
284 veth = (struct vlan_ethhdr *)skb_mac_header(skb);
285 if (veth->h_vlan_encapsulated_proto == proto) {
H A Dnf_tables_trace.c47 struct vlan_ethhdr veth; local
50 BUILD_BUG_ON(sizeof(veth) > NFT_TRACETYPE_LL_HSIZE);
56 if (skb_copy_bits(skb, off, &veth, ETH_HLEN))
59 veth.h_vlan_proto = skb->vlan_proto;
60 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb));
61 veth.h_vlan_encapsulated_proto = skb->protocol;
63 return nla_put(nlskb, NFTA_TRACE_LL_HEADER, sizeof(veth), &veth);
H A Dnft_inner.c59 struct vlan_ethhdr *veth, _veth; local
74 veth = skb_header_pointer(pkt->skb, off, sizeof(_veth), &_veth);
75 if (!veth)
78 outer_llproto = veth->h_vlan_encapsulated_proto;
79 llproto = veth->h_vlan_proto;
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

Completed in 529 milliseconds

123456