Home
last modified time | relevance | path

Searched refs:headers_c (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c154 set_ip4(void *headers_c, void *headers_v, __be32 ip4src_m, in set_ip4() argument
160 memcpy(MLX5E_FTE_ADDR_OF(headers_c, src_ipv4_src_ipv6.ipv4_layout.ipv4), in set_ip4()
166 memcpy(MLX5E_FTE_ADDR_OF(headers_c, dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in set_ip4()
170 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip4()
175 set_ip6(void *headers_c, void *headers_v, __be32 ip6src_m[4], in set_ip6() argument
183 memcpy(MLX5E_FTE_ADDR_OF(headers_c, src_ipv4_src_ipv6.ipv6_layout.ipv6), in set_ip6()
189 memcpy(MLX5E_FTE_ADDR_OF(headers_c, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in set_ip6()
193 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip6()
198 set_tcp(void *headers_c, void *headers_v, __be16 psrc_m, __be16 psrc_v, in set_tcp() argument
202 MLX5E_FTE_SET(headers_c, tcp_sport, ntohs(psrc_m)); in set_tcp()
[all …]
Den_tc.c189 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_match() local
197 fmask = headers_c + soffset; in mlx5e_tc_match_to_reg_match()
236 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_get_match() local
244 fmask = headers_c + soffset; in mlx5e_tc_match_to_reg_get_match()
1006 void *headers_c, *headers_v; in mlx5e_hairpin_get_prio() local
1017 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5e_hairpin_get_prio()
1022 prio_mask = MLX5_GET(fte_match_set_lyr_2_4, headers_c, first_prio); in mlx5e_hairpin_get_prio()
2364 void *headers_c, void *headers_v) in mlx5e_tc_set_ethertype() argument
2377 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_version); in mlx5e_tc_set_ethertype()
2381 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ethertype, in mlx5e_tc_set_ethertype()
[all …]
Den_tc.h298 void *headers_c, void *headers_v);
Deswitch_offloads.c1361 void *headers_c; in esw_add_fdb_miss_rule() local
1374 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_fdb_miss_rule()
1376 dmac_c = MLX5_ADDR_OF(fte_match_param, headers_c, in esw_add_fdb_miss_rule()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dct_fs_smfs.c50 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5_ct_fs_smfs_fill_mask() local
53 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_version); in mlx5_ct_fs_smfs_fill_mask()
55 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ethertype); in mlx5_ct_fs_smfs_fill_mask()
57 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5_ct_fs_smfs_fill_mask()
59 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, in mlx5_ct_fs_smfs_fill_mask()
61 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, in mlx5_ct_fs_smfs_fill_mask()
64 memset(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_ct_fs_smfs_fill_mask()
69 memset(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_ct_fs_smfs_fill_mask()
77 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, tcp_sport); in mlx5_ct_fs_smfs_fill_mask()
78 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, tcp_dport); in mlx5_ct_fs_smfs_fill_mask()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
Dvlan_mangle.c27 void *headers_c, *headers_v; in mlx5e_tc_act_vlan_add_rewrite_action() local
30 headers_c = mlx5e_get_match_headers_criteria(*action, &parse_attr->spec); in mlx5e_tc_act_vlan_add_rewrite_action()
33 if (!(MLX5_GET(fte_match_set_lyr_2_4, headers_c, cvlan_tag) && in mlx5e_tc_act_vlan_add_rewrite_action()
39 match_prio_mask = MLX5_GET(fte_match_set_lyr_2_4, headers_c, first_prio); in mlx5e_tc_act_vlan_add_rewrite_action()
/linux-6.12.1/include/linux/mlx5/
Dfs_helpers.h47 const void *headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in _mlx5_fs_is_outer_ipv_flow() local
66 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, in _mlx5_fs_is_outer_ipv_flow()
72 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, in _mlx5_fs_is_outer_ipv_flow()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c808 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5e_tc_tun_parse() local
827 headers_c, headers_v); in mlx5e_tc_tun_parse()
834 headers_c, headers_v); in mlx5e_tc_tun_parse()
864 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
871 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
880 headers_c, headers_v); in mlx5e_tc_tun_parse()
885 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
894 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
905 headers_c, headers_v); in mlx5e_tc_tun_parse()
913 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_ecn, in mlx5e_tc_tun_parse()
[all …]
Dtc_tun.h45 void *headers_c,
50 void *headers_c,
112 void *headers_c,
Dtc_tun_mplsoudp.c49 void *headers_c, in parse_udp_ports() argument
52 return mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in parse_udp_ports()
58 void *headers_c, in parse_tunnel() argument
Dtc_tun_gre.c62 void *headers_c, in mlx5e_tc_tun_parse_gretap() argument
69 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_gretap()
Dtc_tun_vxlan.c49 void *headers_c, in mlx5e_tc_tun_parse_udp_ports_vxlan() argument
54 err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in mlx5e_tc_tun_parse_udp_ports_vxlan()
160 void *headers_c, in mlx5e_tc_tun_parse_vxlan() argument
Dtc_tun_geneve.c52 void *headers_c, in mlx5e_tc_tun_parse_udp_ports_geneve() argument
57 err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in mlx5e_tc_tun_parse_udp_ports_geneve()
322 void *headers_c, in mlx5e_tc_tun_parse_geneve() argument
Dtc_ct.c380 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5_tc_ct_set_tuple_match() local
392 mlx5e_tc_set_ethertype(ct_priv->dev, &match, true, headers_c, headers_v); in mlx5_tc_ct_set_tuple_match()
393 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in mlx5_tc_ct_set_tuple_match()
412 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
418 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
430 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
437 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
451 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
456 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
463 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
[all …]
/linux-6.12.1/drivers/infiniband/hw/mlx5/
Dfs.c200 void *headers_c; in parse_flow_attr() local
206 headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
213 headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
226 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
233 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
241 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
246 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
251 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
258 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
265 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_ttc.c241 static void mlx5_fs_ttc_set_match_proto(void *headers_c, void *headers_v, in mlx5_fs_ttc_set_match_proto() argument
252 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, l4_type); in mlx5_fs_ttc_set_match_proto()
255 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5_fs_ttc_set_match_proto()
/linux-6.12.1/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1920 void *headers_c; in mlx5_vdpa_add_mac_vlan_rules() local
1933 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5_vdpa_add_mac_vlan_rules()
1935 dmac_c = MLX5_ADDR_OF(fte_match_param, headers_c, outer_headers.dmac_47_16); in mlx5_vdpa_add_mac_vlan_rules()
1940 MLX5_SET(fte_match_set_lyr_2_4, headers_c, cvlan_tag, 1); in mlx5_vdpa_add_mac_vlan_rules()
1941 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, first_vid); in mlx5_vdpa_add_mac_vlan_rules()