/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | test_xdp_vlan.c | 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->h_vlan_encapsulated_proto; in parse_eth_frame() 92 offset += sizeof(*vlan_hdr); in parse_eth_frame() [all …]
|
D | bpf_flow.c | 42 struct vlan_hdr { struct 392 struct vlan_hdr *vlan, _vlan; in PROG()
|
/linux-5.19.10/samples/bpf/ |
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()
|
D | xdp1_kern.c | 62 struct vlan_hdr *vhdr; in xdp_prog1() 65 nh_off += sizeof(struct vlan_hdr); in xdp_prog1() 72 struct vlan_hdr *vhdr; in xdp_prog1() 75 nh_off += sizeof(struct vlan_hdr); in xdp_prog1()
|
D | xdp2_kern.c | 78 struct vlan_hdr *vhdr; in xdp_prog1() 81 nh_off += sizeof(struct vlan_hdr); in xdp_prog1() 88 struct vlan_hdr *vhdr; in xdp_prog1() 91 nh_off += sizeof(struct vlan_hdr); in xdp_prog1()
|
D | xdp_redirect_cpu.bpf.c | 71 struct vlan_hdr *vlan_hdr; in parse_eth() local 73 vlan_hdr = (void *)eth + offset; in parse_eth() 74 offset += sizeof(*vlan_hdr); in parse_eth() 77 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth() 82 struct vlan_hdr *vlan_hdr; in parse_eth() local 84 vlan_hdr = (void *)eth + offset; in parse_eth() 85 offset += sizeof(*vlan_hdr); in parse_eth() 88 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth()
|
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()
|
D | sockex3_kern.c | 62 struct vlan_hdr { struct 249 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in PROG() 251 nhoff += sizeof(struct vlan_hdr); in PROG()
|
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()
|
/linux-5.19.10/drivers/scsi/fnic/ |
D | fnic_fcs.c | 1027 struct vlan_ethhdr *vlan_hdr; in fnic_eth_send() local 1032 vlan_hdr = skb_push(skb, sizeof(*vlan_hdr) - sizeof(*eth_hdr)); in fnic_eth_send() 1033 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send() 1034 vlan_hdr->h_vlan_proto = htons(ETH_P_8021Q); in fnic_eth_send() 1035 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send() 1036 vlan_hdr->h_vlan_TCI = htons(fnic->vlan_id); in fnic_eth_send() 1081 struct vlan_ethhdr *vlan_hdr; in fnic_send_frame() local 1096 eth_hdr_len = sizeof(*vlan_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame() 1097 vlan_hdr = skb_push(skb, eth_hdr_len); in fnic_send_frame() 1098 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame() [all …]
|
/linux-5.19.10/include/linux/ |
D | if_vlan.h | 35 struct vlan_hdr { struct 605 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol() 649 struct vlan_hdr *vhdr) in vlan_set_encap_proto() 761 static inline unsigned long compare_vlan_header(const struct vlan_hdr *h1, in compare_vlan_header() 762 const struct vlan_hdr *h2) in compare_vlan_header()
|
/linux-5.19.10/arch/powerpc/platforms/ps3/ |
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()
|
/linux-5.19.10/net/bridge/netfilter/ |
D | ebt_vlan.c | 40 const struct vlan_hdr *fp; in ebt_vlan_mt() 41 struct vlan_hdr _frame; in ebt_vlan_mt()
|
/linux-5.19.10/net/8021q/ |
D | vlan_core.c | 463 struct vlan_hdr *vhdr; in vlan_gro_receive() 486 struct vlan_hdr *vhdr2; in vlan_gro_receive() 491 vhdr2 = (struct vlan_hdr *)(p->data + off_vlan); in vlan_gro_receive() 511 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); in vlan_gro_complete()
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
D | pedit.h | 11 struct vlan_hdr vlan;
|
/linux-5.19.10/net/netfilter/ |
D | nf_flow_table_ip.c | 297 struct vlan_hdr *vlan_hdr; in nf_flow_encap_pop() local 307 vlan_hdr = (struct vlan_hdr *)skb->data; in nf_flow_encap_pop() 309 vlan_set_encap_proto(skb, vlan_hdr); in nf_flow_encap_pop()
|
/linux-5.19.10/net/hsr/ |
D | hsr_forward.c | 569 struct hsr_vlan_ethhdr *vlan_hdr; in fill_frame_info() local 597 vlan_hdr = (struct hsr_vlan_ethhdr *)ethhdr; in fill_frame_info() 598 proto = vlan_hdr->vlanhdr.h_vlan_encapsulated_proto; in fill_frame_info()
|
/linux-5.19.10/drivers/net/ethernet/intel/ice/ |
D | ice_tc_lib.h | 83 struct ice_tc_vlan_hdr vlan_hdr; member
|
D | ice_tc_lib.c | 315 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id; in ice_tc_fill_rules() 316 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0xFFFF); in ice_tc_fill_rules() 1059 headers->vlan_hdr.vlan_id = in ice_parse_cls_flower() 1062 headers->vlan_hdr.vlan_prio = match.key->vlan_priority; in ice_parse_cls_flower() 1216 u16 vlan_id = be16_to_cpu(fltr->outer_headers.vlan_hdr.vlan_id); in ice_handle_tclass_action()
|
D | ice_protocol_type.h | 212 struct ice_vlan_hdr vlan_hdr; member
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | mlx5dr.h | 132 mlx5dr_action_create_push_vlan(struct mlx5dr_domain *domain, __be32 vlan_hdr);
|
D | fs_dr.c | 222 u32 vlan_hdr; in create_action_push_vlan() local 224 vlan_hdr = (u32)n_ethtype << 16 | (u32)(prio) << 12 | (u32)vid; in create_action_push_vlan() 225 return mlx5dr_action_create_push_vlan(domain, htonl(vlan_hdr)); in create_action_push_vlan()
|
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | bridge.c | 98 MLX5_CAP_GEN_2(esw->dev, max_reformat_remove_size) >= sizeof(struct vlan_hdr) && in mlx5_esw_bridge_pkt_reformat_vlan_pop_supported() 111 reformat_params.size = sizeof(struct vlan_hdr); in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() 919 } vlan_hdr = { htons(ETH_P_8021Q), htons(vlan->vid) }; in mlx5_esw_bridge_vlan_push_create() local 924 MLX5_CAP_GEN_2(esw->dev, max_reformat_insert_size) < sizeof(vlan_hdr) || in mlx5_esw_bridge_vlan_push_create() 934 reformat_params.size = sizeof(vlan_hdr); in mlx5_esw_bridge_vlan_push_create() 935 reformat_params.data = &vlan_hdr; in mlx5_esw_bridge_vlan_push_create()
|
/linux-5.19.10/net/sched/ |
D | act_csum.c | 606 struct vlan_hdr *vlan = (struct vlan_hdr *)skb->data; in tcf_csum_act()
|
/linux-5.19.10/drivers/staging/r8188eu/core/ |
D | rtw_xmit.c | 1515 unsigned short vlan_hdr = 0; in rtw_br_client_tx() local 1533 vlan_hdr = *((unsigned short *)(skb->data + ETH_ALEN * 2 + 2)); in rtw_br_client_tx() 1572 *((unsigned short *)(skb->data + ETH_ALEN * 2 + 2)) = vlan_hdr; in rtw_br_client_tx() 1582 vlan_hdr = *((unsigned short *)(skb->data + ETH_ALEN * 2 + 2)); in rtw_br_client_tx() 1611 *((unsigned short *)(skb->data + ETH_ALEN * 2 + 2)) = vlan_hdr; in rtw_br_client_tx()
|