Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A 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 …]
H A 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()
1005 void *headers_c, *headers_v; in mlx5e_hairpin_get_prio() local
1016 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5e_hairpin_get_prio()
1021 prio_mask = MLX5_GET(fte_match_set_lyr_2_4, headers_c, first_prio); in mlx5e_hairpin_get_prio()
2243 void *headers_c, void *headers_v) in mlx5e_tc_set_ethertype() argument
2256 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_version); in mlx5e_tc_set_ethertype()
2260 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ethertype, in mlx5e_tc_set_ethertype()
[all …]
H A Den_tc.h299 void *headers_c, void *headers_v);
H A Deswitch_offloads.c1350 void *headers_c; in esw_add_fdb_miss_rule() local
1363 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_fdb_miss_rule()
1365 dmac_c = MLX5_ADDR_OF(fte_match_param, headers_c, in esw_add_fdb_miss_rule()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A 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()
/openbmc/linux/include/linux/mlx5/
H A 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun.c804 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5e_tc_tun_parse() local
823 headers_c, headers_v); in mlx5e_tc_tun_parse()
830 headers_c, headers_v); in mlx5e_tc_tun_parse()
854 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
861 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
870 headers_c, headers_v); in mlx5e_tc_tun_parse()
875 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
884 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
895 headers_c, headers_v); in mlx5e_tc_tun_parse()
903 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_ecn, in mlx5e_tc_tun_parse()
[all …]
H A Dtc_tun.h45 void *headers_c,
50 void *headers_c,
112 void *headers_c,
H A 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
H A 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()
H A 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
H A 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
H A Dtc_ct.c370 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5_tc_ct_set_tuple_match() local
382 mlx5e_tc_set_ethertype(ct_priv->dev, &match, true, headers_c, headers_v); in mlx5_tc_ct_set_tuple_match()
383 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in mlx5_tc_ct_set_tuple_match()
402 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
408 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
420 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
427 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
441 MLX5_SET(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()
453 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
[all …]
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A 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 …]
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c1586 void *headers_c; in mlx5_vdpa_add_mac_vlan_rules() local
1599 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5_vdpa_add_mac_vlan_rules()
1601 dmac_c = MLX5_ADDR_OF(fte_match_param, headers_c, outer_headers.dmac_47_16); in mlx5_vdpa_add_mac_vlan_rules()
1606 MLX5_SET(fte_match_set_lyr_2_4, headers_c, cvlan_tag, 1); in mlx5_vdpa_add_mac_vlan_rules()
1607 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, first_vid); in mlx5_vdpa_add_mac_vlan_rules()