Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c158 set_ip4(void *headers_c, void *headers_v, __be32 ip4src_m, in set_ip4() argument
164 memcpy(MLX5E_FTE_ADDR_OF(headers_c, src_ipv4_src_ipv6.ipv4_layout.ipv4), in set_ip4()
170 memcpy(MLX5E_FTE_ADDR_OF(headers_c, dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in set_ip4()
174 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip4()
179 set_ip6(void *headers_c, void *headers_v, __be32 ip6src_m[4], in set_ip6() argument
187 memcpy(MLX5E_FTE_ADDR_OF(headers_c, src_ipv4_src_ipv6.ipv6_layout.ipv6), in set_ip6()
193 memcpy(MLX5E_FTE_ADDR_OF(headers_c, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in set_ip6()
197 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip6()
202 set_tcp(void *headers_c, void *headers_v, __be16 psrc_m, __be16 psrc_v, in set_tcp() argument
206 MLX5E_FTE_SET(headers_c, tcp_sport, ntohs(psrc_m)); in set_tcp()
[all …]
Den_tc.c171 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_match() local
179 fmask = headers_c + soffset; in mlx5e_tc_match_to_reg_match()
218 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_get_match() local
226 fmask = headers_c + soffset; in mlx5e_tc_match_to_reg_get_match()
967 void *headers_c, *headers_v; in mlx5e_hairpin_get_prio() local
978 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5e_hairpin_get_prio()
983 prio_mask = MLX5_GET(fte_match_set_lyr_2_4, headers_c, first_prio); in mlx5e_hairpin_get_prio()
2201 void *headers_c, void *headers_v) in mlx5e_tc_set_ethertype() argument
2214 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_version); in mlx5e_tc_set_ethertype()
2218 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ethertype, in mlx5e_tc_set_ethertype()
[all …]
Den_tc.h289 void *headers_c, void *headers_v);
Deswitch_offloads.c1343 void *headers_c; in esw_add_fdb_miss_rule() local
1356 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_fdb_miss_rule()
1358 dmac_c = MLX5_ADDR_OF(fte_match_param, headers_c, in esw_add_fdb_miss_rule()
/linux-6.1.9/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.1.9/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.1.9/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.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c806 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5e_tc_tun_parse() local
825 headers_c, headers_v); in mlx5e_tc_tun_parse()
832 headers_c, headers_v); in mlx5e_tc_tun_parse()
856 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
863 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
872 headers_c, headers_v); in mlx5e_tc_tun_parse()
877 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
886 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
897 headers_c, headers_v); in mlx5e_tc_tun_parse()
905 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_vxlan.c48 void *headers_c, in mlx5e_tc_tun_parse_udp_ports_vxlan() argument
53 err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in mlx5e_tc_tun_parse_udp_ports_vxlan()
106 void *headers_c, in mlx5e_tc_tun_parse_vxlan() argument
Dtc_tun_gre.c58 void *headers_c, in mlx5e_tc_tun_parse_gretap() argument
65 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_gretap()
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()
321 void *headers_c, in mlx5e_tc_tun_parse_geneve() argument
Dtc_ct.c375 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5_tc_ct_set_tuple_match() local
387 mlx5e_tc_set_ethertype(ct_priv->dev, &match, true, headers_c, headers_v); in mlx5_tc_ct_set_tuple_match()
388 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in mlx5_tc_ct_set_tuple_match()
407 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
413 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
425 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
432 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
446 MLX5_SET(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()
458 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
[all …]
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dfs.c201 void *headers_c; in parse_flow_attr() local
207 headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
214 headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
227 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
234 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
242 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
247 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
252 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
259 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
266 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
[all …]
/linux-6.1.9/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1454 void *headers_c; in mlx5_vdpa_add_mac_vlan_rules() local
1465 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5_vdpa_add_mac_vlan_rules()
1467 dmac_c = MLX5_ADDR_OF(fte_match_param, headers_c, outer_headers.dmac_47_16); in mlx5_vdpa_add_mac_vlan_rules()
1472 MLX5_SET(fte_match_set_lyr_2_4, headers_c, cvlan_tag, 1); in mlx5_vdpa_add_mac_vlan_rules()
1473 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, first_vid); in mlx5_vdpa_add_mac_vlan_rules()