/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_vlan.c | 30 * struct vlan_hdr - vlan header 72 struct _vlan_hdr *vlan_hdr; in parse_eth_frame() local 74 vlan_hdr = (void *)eth + offset; in parse_eth_frame() 76 pkt->vlan_outer = bpf_ntohs(vlan_hdr->h_vlan_TCI) in parse_eth_frame() 78 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth_frame() 79 offset += sizeof(*vlan_hdr); in parse_eth_frame() 85 struct _vlan_hdr *vlan_hdr; in parse_eth_frame() local 87 vlan_hdr = (void *)eth + offset; in parse_eth_frame() 89 pkt->vlan_inner = bpf_ntohs(vlan_hdr->h_vlan_TCI) in parse_eth_frame() 91 eth_type = vlan_hdr in parse_eth_frame() 159 struct _vlan_hdr *vlan_hdr = data + pkt.vlan_outer_offset; xdp_prognum1() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_vlan.c | 30 * struct vlan_hdr - vlan header 72 struct _vlan_hdr *vlan_hdr; in parse_eth_frame() local 74 vlan_hdr = (void *)eth + offset; in parse_eth_frame() 76 pkt->vlan_outer = bpf_ntohs(vlan_hdr->h_vlan_TCI) in parse_eth_frame() 78 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth_frame() 79 offset += sizeof(*vlan_hdr); in parse_eth_frame() 85 struct _vlan_hdr *vlan_hdr; in parse_eth_frame() local 87 vlan_hdr = (void *)eth + offset; in parse_eth_frame() 89 pkt->vlan_inner = bpf_ntohs(vlan_hdr->h_vlan_TCI) in parse_eth_frame() 91 eth_type = vlan_hdr in parse_eth_frame() 159 struct _vlan_hdr *vlan_hdr = data + pkt.vlan_outer_offset; xdp_prognum1() local [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | sockex2_kern.c | 13 struct vlan_hdr { struct 109 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector() 111 nhoff += sizeof(struct vlan_hdr); in flow_dissector() 115 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector() 117 nhoff += sizeof(struct vlan_hdr); in flow_dissector() 153 nhoff + offsetof(struct vlan_hdr, in flow_dissector() 155 nhoff += sizeof(struct vlan_hdr); in flow_dissector()
|
H A D | xdp1_kern.c | 61 struct vlan_hdr *vhdr; in xdp_prog1() 64 nh_off += sizeof(struct vlan_hdr); in xdp_prog1() 70 struct vlan_hdr *vhdr; in xdp_prog1() 73 nh_off += sizeof(struct vlan_hdr); in xdp_prog1()
|
H A D | xdp_redirect_cpu_kern.c | 109 struct vlan_hdr { struct 133 struct vlan_hdr *vlan_hdr; in parse_eth() local 135 vlan_hdr = (void *)eth + offset; in parse_eth() 136 offset += sizeof(*vlan_hdr); in parse_eth() 139 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth() 143 struct vlan_hdr *vlan_hdr; in parse_eth() local 145 vlan_hdr = (void *)eth + offset; in parse_eth() 146 offset += sizeof(*vlan_hdr); in parse_eth() [all...] |
H A D | xdp2_kern.c | 77 struct vlan_hdr *vhdr; in xdp_prog1() 80 nh_off += sizeof(struct vlan_hdr); in xdp_prog1() 86 struct vlan_hdr *vhdr; in xdp_prog1() 89 nh_off += sizeof(struct vlan_hdr); in xdp_prog1()
|
H A D | parse_varlen.c | 127 struct vlan_hdr *vhdr; in handle_ingress() 130 nh_off += sizeof(struct vlan_hdr); in handle_ingress() 136 struct vlan_hdr *vhdr; in handle_ingress() 139 nh_off += sizeof(struct vlan_hdr); in handle_ingress()
|
H A D | xdp_router_ipv4_kern.c | 130 struct vlan_hdr *vhdr; in xdp_router_ipv4_prog() 133 nh_off += sizeof(struct vlan_hdr); in xdp_router_ipv4_prog()
|
H A D | sockex3_kern.c | 62 struct vlan_hdr { struct 249 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in PARSE_VLAN() 251 nhoff += sizeof(struct vlan_hdr); in PARSE_VLAN()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | sockex2_kern.c | 13 struct vlan_hdr { struct 109 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector() 111 nhoff += sizeof(struct vlan_hdr); in flow_dissector() 115 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector() 117 nhoff += sizeof(struct vlan_hdr); in flow_dissector() 153 nhoff + offsetof(struct vlan_hdr, in flow_dissector() 155 nhoff += sizeof(struct vlan_hdr); in flow_dissector()
|
H A D | parse_varlen.c | 127 struct vlan_hdr *vhdr; in handle_ingress() 130 nh_off += sizeof(struct vlan_hdr); in handle_ingress() 136 struct vlan_hdr *vhdr; in handle_ingress() 139 nh_off += sizeof(struct vlan_hdr); in handle_ingress()
|
H A D | xdp_router_ipv4.bpf.c | 94 struct vlan_hdr *vhdr; in xdp_router_ipv4_prog() 97 nh_off += sizeof(struct vlan_hdr); in xdp_router_ipv4_prog()
|
H A D | sockex3_kern.c | 25 struct vlan_hdr { struct 217 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in bpf_func_vlan() 219 nhoff += sizeof(struct vlan_hdr); in bpf_func_vlan()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | if_vlan.h | 31 * struct vlan_hdr - vlan header 35 struct vlan_hdr { struct 41 * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr) 611 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol() 672 struct vlan_hdr *vhdr) in vlan_set_encap_proto() 717 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in vlan_remove_tag() 805 static inline unsigned long compare_vlan_header(const struct vlan_hdr *h1, in compare_vlan_header() 806 const struct vlan_hdr *h2) in compare_vlan_header()
|
/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
H A D | fnic_fcs.c | 1025 struct vlan_ethhdr *vlan_hdr; in fnic_eth_send() local 1030 vlan_hdr = skb_push(skb, sizeof(*vlan_hdr) - sizeof(*eth_hdr)); in fnic_eth_send() 1031 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send() 1032 vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q); in fnic_eth_send() 1033 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send() 1034 vlan_hdr->h_vlan_TCI = htons(fnic->vlan_id); in fnic_eth_send() 1079 struct vlan_ethhdr *vlan_hdr; in fnic_send_frame() local 1094 eth_hdr_len = sizeof(*vlan_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame() 1095 vlan_hdr in fnic_send_frame() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_tc_lib.c | 412 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id; in ice_tc_fill_rules() 413 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0x0FFF); in ice_tc_fill_rules() 418 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0xEFFF); in ice_tc_fill_rules() 420 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0xE000); in ice_tc_fill_rules() 421 list[i].h_u.vlan_hdr.vlan = 0; in ice_tc_fill_rules() 423 list[i].h_u.vlan_hdr.vlan |= in ice_tc_fill_rules() 424 headers->vlan_hdr.vlan_prio; in ice_tc_fill_rules() 431 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid); in ice_tc_fill_rules() 442 list[i].h_u.vlan_hdr in ice_tc_fill_rules() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/ |
H A D | gelic_udbg.c | 61 static __iomem struct vlan_hdr *h_vlan; 158 header_size += sizeof(struct vlan_hdr); in gelic_debug_init() 159 h_vlan = (struct vlan_hdr *)(h_eth + 1); in gelic_debug_init()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/ps3/ |
H A D | gelic_udbg.c | 61 static __iomem struct vlan_hdr *h_vlan; 158 header_size += sizeof(struct vlan_hdr); in gelic_debug_init() 159 h_vlan = (struct vlan_hdr *)(h_eth + 1); in gelic_debug_init()
|
/kernel/linux/linux-5.10/net/8021q/ |
H A D | vlan_core.c | 469 struct vlan_hdr *vhdr; in vlan_gro_receive() 493 struct vlan_hdr *vhdr2; in vlan_gro_receive() 498 vhdr2 = (struct vlan_hdr *)(p->data + off_vlan); in vlan_gro_receive() 517 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); in vlan_gro_complete()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | if_vlan.h | 31 * struct vlan_hdr - vlan header 35 struct vlan_hdr { struct 41 * struct vlan_ethhdr - vlan ethernet header (ethhdr + vlan_hdr) 608 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol() 669 struct vlan_hdr *vhdr) in vlan_set_encap_proto() 781 static inline unsigned long compare_vlan_header(const struct vlan_hdr *h1, in compare_vlan_header() 782 const struct vlan_hdr *h2) in compare_vlan_header()
|
/kernel/linux/linux-6.6/net/8021q/ |
H A D | vlan_core.c | 470 struct vlan_hdr *vhdr; in vlan_gro_receive() 490 struct vlan_hdr *vhdr2; in vlan_gro_receive() 495 vhdr2 = (struct vlan_hdr *)(p->data + off_vlan); in vlan_gro_receive() 515 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); in vlan_gro_complete()
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
H A D | ebt_vlan.c | 40 const struct vlan_hdr *fp; in ebt_vlan_mt() 41 struct vlan_hdr _frame; in ebt_vlan_mt()
|
/kernel/linux/linux-6.6/net/bridge/netfilter/ |
H A D | ebt_vlan.c | 40 const struct vlan_hdr *fp; in ebt_vlan_mt() 41 struct vlan_hdr _frame; in ebt_vlan_mt()
|
/kernel/linux/linux-6.6/drivers/scsi/fnic/ |
H A D | fnic_fcs.c | 1015 struct vlan_ethhdr *vlan_hdr; in fnic_eth_send() local 1020 vlan_hdr = skb_push(skb, sizeof(*vlan_hdr) - sizeof(*eth_hdr)); in fnic_eth_send() 1021 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send() 1022 vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q); in fnic_eth_send() 1023 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send() 1024 vlan_hdr->h_vlan_TCI = htons(fnic->vlan_id); in fnic_eth_send() 1069 struct vlan_ethhdr *vlan_hdr; in fnic_send_frame() local 1084 eth_hdr_len = sizeof(*vlan_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame() 1085 vlan_hdr in fnic_send_frame() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | pedit.h | 11 struct vlan_hdr vlan;
|