Home
last modified time | relevance | path

Searched refs:vlan_hdr (Results 1 – 25 of 35) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_vlan.c30 * 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...]
H A Dxdp_hw_metadata.c44 eth = (void *)eth + sizeof(struct vlan_hdr); in rx()
47 eth = (void *)eth + sizeof(struct vlan_hdr); in rx()
H A Dbpf_flow.c44 struct vlan_hdr { struct
407 struct vlan_hdr *vlan, _vlan; in PROG()
/linux/samples/bpf/
H A Dsockex2_kern.c13 struct vlan_hdr { struct
108 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
110 nhoff += sizeof(struct vlan_hdr); in flow_dissector()
114 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
116 nhoff += sizeof(struct vlan_hdr); in flow_dissector()
152 nhoff + offsetof(struct vlan_hdr, in flow_dissector()
154 nhoff += sizeof(struct vlan_hdr); in flow_dissector()
14 h_vlan_TCIvlan_hdr global() argument
15 h_vlan_encapsulated_protovlan_hdr global() argument
H A Dparse_varlen.c127 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 Dsockex3_kern.c25 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 Dxdp_router_ipv4.bpf.c94 struct vlan_hdr *vhdr; in xdp_router_ipv4_prog()
97 nh_off += sizeof(struct vlan_hdr); in xdp_router_ipv4_prog()
/linux/arch/powerpc/platforms/ps3/
H A Dgelic_udbg.c62 static __iomem struct vlan_hdr *h_vlan;
159 header_size += sizeof(struct vlan_hdr); in gelic_debug_init()
160 h_vlan = (struct vlan_hdr *)(h_eth + 1); in gelic_debug_init()
/linux/net/bridge/netfilter/
H A Debt_vlan.c40 const struct vlan_hdr *fp; in ebt_vlan_mt()
41 struct vlan_hdr _frame; in ebt_vlan_mt()
/linux/net/8021q/
H A Dvlan_core.c470 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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dpedit.h11 struct vlan_hdr vlan;
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste_v3.c21 u32 vlan_hdr) in dr_ste_v3_set_push_vlan() argument
28 MLX5_SET(ste_double_action_insert_with_inline_v3, d_action, inline_data, vlan_hdr); in dr_ste_v3_set_push_vlan()
H A Dmlx5dr.h132 mlx5dr_action_create_push_vlan(struct mlx5dr_domain *domain, __be32 vlan_hdr);
H A Ddr_ste_v1.h154 void dr_ste_v1_set_push_vlan(u8 *hw_ste_p, u8 *d_action, u32 vlan_hdr);
H A Ddr_ste.h206 u32 vlan_hdr);
/linux/net/netfilter/
H A Dnf_flow_table_ip.c367 struct vlan_hdr *vlan_hdr; in nf_flow_offload_lookup()
377 vlan_hdr = (struct vlan_hdr *)skb->data; in nf_flow_offload_forward()
379 vlan_set_encap_proto(skb, vlan_hdr); in nf_flow_offload_forward()
312 struct vlan_hdr *vlan_hdr; nf_flow_encap_pop() local
/linux/net/hsr/
H A Dhsr_forward.c680 struct hsr_vlan_ethhdr *vlan_hdr; in fill_frame_info() local
718 vlan_hdr = (struct hsr_vlan_ethhdr *)skb_mac_header(skb); in fill_frame_info()
719 proto = vlan_hdr->vlanhdr.h_vlan_encapsulated_proto; in fill_frame_info()
/linux/net/sched/
H A Dact_csum.c607 struct vlan_hdr *vlan = (struct vlan_hdr *)skb->data; in tcf_csum_act()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dmlx5hws.h173 __be32 vlan_hdr; member
H A Dfs_hws.c854 (*ractions)[num_actions].push_vlan.vlan_hdr = in mlx5_fs_fte_get_hws_actions()
865 (*ractions)[num_actions].push_vlan.vlan_hdr = in mlx5_fs_fte_get_hws_actions()
1183 remove_hdr_vlan.size = sizeof(struct vlan_hdr); in mlx5_fs_create_action_remove_header_vlan()
1194 params->size != sizeof(struct vlan_hdr)) in mlx5_fs_get_action_remove_header_vlan()
/linux/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_netdev.c525 struct vlan_hdr *vhdr; in fm10k_xmit_frame()
545 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in fm10k_xmit_frame()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_eswitch_br.c115 list[1].h_u.vlan_hdr.vlan = cpu_to_be16(vid & VLAN_VID_MASK); in ice_eswitch_br_add_vlan_lkup()
116 list[1].m_u.vlan_hdr.vlan = cpu_to_be16(0xFFFF); in ice_eswitch_br_add_vlan_lkup()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c541 struct vlan_hdr *vlanh) in get_fixed_vlan_csum()
619 hdr += sizeof(struct vlan_hdr); in check_csum()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.c405 sizeof(struct vlan_hdr) + sizeof(struct fcoe_hdr)); in ixgbe_fcoe_ddp()
/linux/net/core/
H A Dflow_dissector.c1299 const struct vlan_hdr *vlan = NULL; in __skb_flow_dissect()
1300 struct vlan_hdr _vlan; in __skb_flow_dissect()

12