Home
last modified time | relevance | path

Searched refs:l2_hdr (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c95 __u8 *l2_hdr = NULL; in __encap_ipv4() local
194 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4()
197 *(__u32 *)l2_hdr = mpls_label; in __encap_ipv4()
203 struct vxlanhdr *vxlan_hdr = (struct vxlanhdr *)l2_hdr; in __encap_ipv4()
208 l2_hdr += sizeof(struct vxlanhdr); in __encap_ipv4()
211 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4()
263 __u8 *l2_hdr = NULL; in __encap_ipv6() local
324 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv6()
327 *(__u32 *)l2_hdr = mpls_label; in __encap_ipv6()
333 struct vxlanhdr *vxlan_hdr = (struct vxlanhdr *)l2_hdr; in __encap_ipv6()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_ste_v0.c594 struct mlx5_ifc_l2_hdr_bits *l2_hdr = data; in dr_ste_v0_set_action_decap_l3_list() local
618 hdr_fld_4b = MLX5_GET(l2_hdr, l2_hdr, dmac_47_16); in dr_ste_v0_set_action_decap_l3_list()
631 hdr_fld_4b = (MLX5_GET(l2_hdr, l2_hdr, smac_31_0) >> 16 | in dr_ste_v0_set_action_decap_l3_list()
632 MLX5_GET(l2_hdr, l2_hdr, smac_47_32) << 16); in dr_ste_v0_set_action_decap_l3_list()
645 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, dmac_15_0); in dr_ste_v0_set_action_decap_l3_list()
658 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, ethertype); in dr_ste_v0_set_action_decap_l3_list()
662 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, ethertype); in dr_ste_v0_set_action_decap_l3_list()
664 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, vlan); in dr_ste_v0_set_action_decap_l3_list()
680 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, smac_31_0); in dr_ste_v0_set_action_decap_l3_list()
687 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, vlan_type); in dr_ste_v0_set_action_decap_l3_list()
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1436 unsigned char *l2_hdr = skb->data; in hns3_set_l2l3l4() local
1464 l2_hdr = skb_inner_mac_header(skb); in hns3_set_l2l3l4()
1473 l2_len = l3.hdr - l2_hdr; in hns3_set_l2l3l4()