Searched refs:l2_hdr (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 102 __u8 *l2_hdr = NULL; in __encap_ipv4() local 201 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4() 204 *(__u32 *)l2_hdr = mpls_label; in __encap_ipv4() 210 struct vxlanhdr *vxlan_hdr = (struct vxlanhdr *)l2_hdr; in __encap_ipv4() 215 l2_hdr += sizeof(struct vxlanhdr); in __encap_ipv4() 218 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4() 270 __u8 *l2_hdr = NULL; in __encap_ipv6() local 331 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv6() 334 *(__u32 *)l2_hdr = mpls_label; in __encap_ipv6() 340 struct vxlanhdr *vxlan_hdr = (struct vxlanhdr *)l2_hdr; in __encap_ipv6() [all...] |
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
H A D | dr_ste_v0.c | 596 struct mlx5_ifc_l2_hdr_bits *l2_hdr = data; in dr_ste_v0_set_action_decap_l3_list() local 620 hdr_fld_4b = MLX5_GET(l2_hdr, l2_hdr, dmac_47_16); in dr_ste_v0_set_action_decap_l3_list() 633 hdr_fld_4b = (MLX5_GET(l2_hdr, l2_hdr, smac_31_0) >> 16 | in dr_ste_v0_set_action_decap_l3_list() 634 MLX5_GET(l2_hdr, l2_hdr, smac_47_32) << 16); in dr_ste_v0_set_action_decap_l3_list() 647 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hdr, dmac_15_0); in dr_ste_v0_set_action_decap_l3_list() 660 hdr_fld_2b = MLX5_GET(l2_hdr, l2_hd in dr_ste_v0_set_action_decap_l3_list() [all...] |