Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c133 set_ip4(void *headers_c, void *headers_v, __be32 ip4src_m, in set_ip4() argument
139 memcpy(MLX5E_FTE_ADDR_OF(headers_c, src_ipv4_src_ipv6.ipv4_layout.ipv4), in set_ip4()
145 memcpy(MLX5E_FTE_ADDR_OF(headers_c, dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in set_ip4()
149 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip4()
154 set_ip6(void *headers_c, void *headers_v, __be32 ip6src_m[4], in set_ip6() argument
162 memcpy(MLX5E_FTE_ADDR_OF(headers_c, src_ipv4_src_ipv6.ipv6_layout.ipv6), in set_ip6()
168 memcpy(MLX5E_FTE_ADDR_OF(headers_c, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in set_ip6()
172 MLX5E_FTE_SET(headers_c, ethertype, 0xffff); in set_ip6()
177 set_tcp(void *headers_c, void *headers_v, __be16 psrc_m, __be16 psrc_v, in set_tcp() argument
181 MLX5E_FTE_SET(headers_c, tcp_sport, ntohs(psrc_m)); in set_tcp()
[all …]
Den_tc.c203 void *headers_c = spec->match_criteria; in mlx5e_tc_match_to_reg_match() local
207 fmask = headers_c + soffset; in mlx5e_tc_match_to_reg_match()
227 void *headers_c = spec->match_criteria; in mlx5e_tc_match_to_reg_get_match() local
231 fmask = headers_c + soffset; in mlx5e_tc_match_to_reg_get_match()
801 void *headers_c, *headers_v; in mlx5e_hairpin_get_prio() local
812 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, outer_headers); in mlx5e_hairpin_get_prio()
817 prio_mask = MLX5_GET(fte_match_set_lyr_2_4, headers_c, first_prio); in mlx5e_hairpin_get_prio()
2105 void *headers_c, void *headers_v) in mlx5e_tc_set_ethertype() argument
2118 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_version); in mlx5e_tc_set_ethertype()
2122 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ethertype, in mlx5e_tc_set_ethertype()
[all …]
Den_tc.h220 void *headers_c, void *headers_v);
Deswitch_offloads.c1036 void *headers_c; in esw_add_fdb_miss_rule() local
1049 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_fdb_miss_rule()
1051 dmac_c = MLX5_ADDR_OF(fte_match_param, headers_c, in esw_add_fdb_miss_rule()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c503 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5e_tc_tun_parse() local
522 headers_c, headers_v); in mlx5e_tc_tun_parse()
529 headers_c, headers_v); in mlx5e_tc_tun_parse()
553 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
560 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
569 headers_c, headers_v); in mlx5e_tc_tun_parse()
574 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
583 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5e_tc_tun_parse()
594 headers_c, headers_v); in mlx5e_tc_tun_parse()
602 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_ecn, in mlx5e_tc_tun_parse()
[all …]
Dtc_tun.h38 void *headers_c,
43 void *headers_c,
86 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()
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()
316 void *headers_c, in mlx5e_tc_tun_parse_geneve() argument
Dtc_ct.c324 void *headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5_tc_ct_set_tuple_match() local
336 mlx5e_tc_set_ethertype(priv->mdev, &match, true, headers_c, in mlx5_tc_ct_set_tuple_match()
338 MLX5_SET(fte_match_set_lyr_2_4, headers_c, ip_protocol, in mlx5_tc_ct_set_tuple_match()
357 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
363 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
375 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
382 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
396 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
401 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
408 MLX5_SET(fte_match_set_lyr_2_4, headers_c, in mlx5_tc_ct_set_tuple_match()
[all …]
/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 …]
/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()