Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_action.c827 struct mlx5_ifc_l2_hdr_bits *l2_hdr = data; in dr_actions_l2_rewrite() local
847 hdr_fld_4b = MLX5_GET(l2_hdr, l2_hdr, dmac_47_16); in dr_actions_l2_rewrite()
861 hdr_fld_4b = (MLX5_GET(l2_hdr, l2_hdr, smac_31_0) >> 16 | in dr_actions_l2_rewrite()
862 MLX5_GET(l2_hdr, l2_hdr, smac_47_32) << 16); in dr_actions_l2_rewrite()
876 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, dmac_15_0); in dr_actions_l2_rewrite()
889 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, ethertype); in dr_actions_l2_rewrite()
893 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, ethertype); in dr_actions_l2_rewrite()
895 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, vlan); in dr_actions_l2_rewrite()
911 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, smac_31_0); in dr_actions_l2_rewrite()
919 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, vlan_type); in dr_actions_l2_rewrite()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c865 unsigned char *l2_hdr = skb->data; in hns3_set_l2l3l4() local
894 l2_hdr = skb_inner_mac_header(skb); in hns3_set_l2l3l4()
915 l2_len = l3.hdr - l2_hdr; in hns3_set_l2l3l4()