/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A 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 …]
|
H A D | bpf_flow.c | 44 struct vlan_hdr { struct 407 struct vlan_hdr *vlan, _vlan; in PROG()
|
/openbmc/qemu/net/ |
H A D | eth.c | 226 struct vlan_header vlan_hdr; in eth_strip_vlan() local 240 &vlan_hdr, sizeof(vlan_hdr)); in eth_strip_vlan() 242 if (copied < sizeof(vlan_hdr)) { in eth_strip_vlan() 246 new_ehdr->h_proto = vlan_hdr.h_proto; in eth_strip_vlan() 248 *tci = be16_to_cpu(vlan_hdr.h_tci); in eth_strip_vlan() 249 *payload_offset = iovoff + sizeof(*new_ehdr) + sizeof(vlan_hdr); in eth_strip_vlan() 254 PKT_GET_VLAN_HDR(new_ehdr), sizeof(vlan_hdr)); in eth_strip_vlan() 256 if (copied < sizeof(vlan_hdr)) { in eth_strip_vlan() 260 *payload_offset += sizeof(vlan_hdr); in eth_strip_vlan() 276 struct vlan_header vlan_hdr; in eth_strip_vlan_ex() local [all …]
|
/openbmc/linux/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 | 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()
|
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()
|
/openbmc/linux/include/linux/ |
H A D | if_vlan.h | 35 struct vlan_hdr { struct 614 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol_offset() 682 struct vlan_hdr *vhdr) in vlan_set_encap_proto() 727 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in vlan_remove_tag() 815 static inline unsigned long compare_vlan_header(const struct vlan_hdr *h1, in compare_vlan_header() 816 const struct vlan_hdr *h2) in compare_vlan_header()
|
/openbmc/linux/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 = skb_push(skb, eth_hdr_len); in fnic_send_frame() 1086 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_tc_lib.c | 419 list[i].h_u.vlan_hdr.vlan = headers->vlan_hdr.vlan_id; in ice_tc_fill_rules() 420 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0x0FFF); in ice_tc_fill_rules() 425 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0xEFFF); in ice_tc_fill_rules() 427 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0xE000); in ice_tc_fill_rules() 428 list[i].h_u.vlan_hdr.vlan = 0; in ice_tc_fill_rules() 430 list[i].h_u.vlan_hdr.vlan |= in ice_tc_fill_rules() 431 headers->vlan_hdr.vlan_prio; in ice_tc_fill_rules() 438 vlan_tpid = be16_to_cpu(headers->vlan_hdr.vlan_tpid); in ice_tc_fill_rules() 449 list[i].h_u.vlan_hdr.vlan = headers->cvlan_hdr.vlan_id; in ice_tc_fill_rules() 450 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0x0FFF); in ice_tc_fill_rules() [all …]
|
H A D | ice_tc_lib.h | 119 struct ice_tc_vlan_hdr vlan_hdr; member
|
H A D | ice_protocol_type.h | 413 struct ice_vlan_hdr vlan_hdr; member
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/net/8021q/ |
H A D | vlan_core.c | 470 struct vlan_hdr *vhdr; in vlan_gro_receive() 492 struct vlan_hdr *vhdr2; in vlan_gro_receive() 497 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | pedit.h | 11 struct vlan_hdr vlan;
|
/openbmc/linux/net/netfilter/ |
H A D | nf_flow_table_ip.c | 308 struct vlan_hdr *vlan_hdr; in nf_flow_encap_pop() local 318 vlan_hdr = (struct vlan_hdr *)skb->data; in nf_flow_encap_pop() 320 vlan_set_encap_proto(skb, vlan_hdr); in nf_flow_encap_pop()
|
H A D | nft_payload.c | 351 case offsetof(struct vlan_ethhdr, h_vlan_TCI) + sizeof(struct vlan_hdr): in nft_payload_offload_ll() 360 sizeof(struct vlan_hdr): in nft_payload_offload_ll()
|
/openbmc/linux/net/hsr/ |
H A D | hsr_forward.c | 566 struct hsr_vlan_ethhdr *vlan_hdr; in fill_frame_info() local 593 vlan_hdr = (struct hsr_vlan_ethhdr *)ethhdr; in fill_frame_info() 594 proto = vlan_hdr->vlanhdr.h_vlan_encapsulated_proto; in fill_frame_info()
|
/openbmc/qemu/hw/net/ |
H A D | ftgmac100.c | 503 uint8_t *vlan_hdr = s->frame + (ETH_ALEN * 2); in ftgmac100_insert_vlan() local 504 uint8_t *payload = vlan_hdr + sizeof(struct vlan_header); in ftgmac100_insert_vlan() 522 memmove(payload, vlan_hdr, frame_size - (ETH_ALEN * 2)); in ftgmac100_insert_vlan() 523 stw_be_p(vlan_hdr, ETH_P_VLAN); in ftgmac100_insert_vlan() 524 stw_be_p(vlan_hdr + 2, vlan_tci); in ftgmac100_insert_vlan()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | fs_dr.c | 235 u32 vlan_hdr; in create_action_push_vlan() local 237 vlan_hdr = (u32)n_ethtype << 16 | (u32)(prio) << 12 | (u32)vid; in create_action_push_vlan() 238 return mlx5dr_action_create_push_vlan(domain, htonl(vlan_hdr)); in create_action_push_vlan()
|
H A D | mlx5dr.h | 134 mlx5dr_action_create_push_vlan(struct mlx5dr_domain *domain, __be32 vlan_hdr);
|
H A D | dr_action.c | 905 attr.vlans.headers[attr.vlans.count++] = action->push_vlan->vlan_hdr; in mlx5dr_actions_build_ste_arr() 1495 __be32 vlan_hdr) in mlx5dr_action_create_push_vlan() argument 1497 u32 vlan_hdr_h = ntohl(vlan_hdr); in mlx5dr_action_create_push_vlan() 1510 action->push_vlan->vlan_hdr = vlan_hdr_h; in mlx5dr_action_create_push_vlan()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge.c | 47 MLX5_CAP_GEN_2(esw->dev, max_reformat_remove_size) >= sizeof(struct vlan_hdr) && in mlx5_esw_bridge_pkt_reformat_vlan_pop_supported() 60 reformat_params.size = sizeof(struct vlan_hdr); in mlx5_esw_bridge_pkt_reformat_vlan_pop_create() 1027 } vlan_hdr = { htons(vlan_proto), htons(vlan->vid) }; in mlx5_esw_bridge_vlan_push_create() local 1032 MLX5_CAP_GEN_2(esw->dev, max_reformat_insert_size) < sizeof(vlan_hdr) || in mlx5_esw_bridge_vlan_push_create() 1042 reformat_params.size = sizeof(vlan_hdr); in mlx5_esw_bridge_vlan_push_create() 1043 reformat_params.data = &vlan_hdr; in mlx5_esw_bridge_vlan_push_create()
|
/openbmc/linux/net/sched/ |
H A D | act_csum.c | 606 struct vlan_hdr *vlan = (struct vlan_hdr *)skb->data; in tcf_csum_act()
|