Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c141 set_ip4(void *headers_c, void *headers_v, __be32 ip4src_m, in set_ip4() argument
147 memcpy(MLX5E_FTE_ADDR_OF(headers_c, src_ipv4_src_ipv6.ipv4_layout.ipv4), in set_ip4()
153 memcpy(MLX5E_FTE_ADDR_OF(headers_c, dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in set_ip4()
157 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip4()
162 set_ip6(void *headers_c, void *headers_v, __be32 ip6src_m[4], in set_ip6() argument
170 memcpy(MLX5E_FTE_ADDR_OF(headers_c, src_ipv4_src_ipv6.ipv6_layout.ipv6), in set_ip6()
176 memcpy(MLX5E_FTE_ADDR_OF(headers_c, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in set_ip6()
180 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip6()
185 set_tcp(void *headers_c, void *headers_v, __be16 psrc_m, __be16 psrc_v, in set_tcp() argument
189 MLX5E_FTE_SET(headers_c, tcp_sport, ntohs(psrc_m)); in set_tcp()
[all …]
Den_tc.c131 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_match() local
139 fmask = headers_c + soffset; in mlx5e_tc_match_to_reg_match()
178 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_get_match() local
186 fmask = headers_c + soffset; in mlx5e_tc_match_to_reg_get_match()
759 void *headers_c, *headers_v; in mlx5e_hairpin_get_prio() local
770 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5e_hairpin_get_prio()
775 prio_mask = MLX5_GET(fte_match_set_lyr_2_4, headers_c, first_prio); in mlx5e_hairpin_get_prio()
1840 void *headers_c, void *headers_v) in mlx5e_tc_set_ethertype() argument
1853 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_version); in mlx5e_tc_set_ethertype()
1857 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ethertype, in mlx5e_tc_set_ethertype()
[all …]
Den_tc.h257 void *headers_c, void *headers_v);
Deswitch_offloads.c1298 void *headers_c; in esw_add_fdb_miss_rule() local
1311 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_fdb_miss_rule()
1313 dmac_c = MLX5_ADDR_OF(fte_match_param, headers_c, in esw_add_fdb_miss_rule()
/Linux-v5.15/include/linux/mlx5/
Dfs_helpers.h52 const void *headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in _mlx5_fs_is_outer_ipproto_flow() local
57 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, ip_protocol) == 0xff && in _mlx5_fs_is_outer_ipproto_flow()
87 const void *headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in _mlx5_fs_is_outer_ipv_flow() local
106 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, in _mlx5_fs_is_outer_ipv_flow()
112 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, in _mlx5_fs_is_outer_ipv_flow()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c785 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5e_tc_tun_parse() local
804 headers_c, headers_v); in mlx5e_tc_tun_parse()
811 headers_c, headers_v); in mlx5e_tc_tun_parse()
835 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
842 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
851 headers_c, headers_v); in mlx5e_tc_tun_parse()
856 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
865 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
876 headers_c, headers_v); in mlx5e_tc_tun_parse()
884 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,
110 void *headers_c,
Dtc_tun_mplsoudp.c50 void *headers_c, in parse_udp_ports() argument
53 return mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in parse_udp_ports()
59 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()
104 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()
316 void *headers_c, in mlx5e_tc_tun_parse_geneve() argument
Dtc_ct.c326 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5_tc_ct_set_tuple_match() local
338 mlx5e_tc_set_ethertype(priv->mdev, &match, true, headers_c, in mlx5_tc_ct_set_tuple_match()
340 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in mlx5_tc_ct_set_tuple_match()
359 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
365 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
377 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
384 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
398 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
403 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
410 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
[all …]
/Linux-v5.15/drivers/infiniband/hw/mlx5/
Dfs.c210 void *headers_c; in parse_flow_attr() local
216 headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
223 headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
236 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
243 ether_addr_copy(MLX5_ADDR_OF(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()
256 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
261 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
268 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
275 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dipsec.c560 const void *headers_c = MLX5_ADDR_OF(fte_match_param, in validate_fpga_full_mask() local
567 if (mlx5_fs_is_outer_ipv4_flow(dev, headers_c, headers_v)) { in validate_fpga_full_mask()
569 headers_c, in validate_fpga_full_mask()
572 headers_c, in validate_fpga_full_mask()
582 headers_c, in validate_fpga_full_mask()
585 headers_c, in validate_fpga_full_mask()