/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_fs_tcp.c | 43 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in accel_fs_tcp_set_ipv4_flow() 45 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv4_flow() 53 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv4_flow() 55 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv4_flow() 64 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in accel_fs_tcp_set_ipv6_flow() 66 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv6_flow() 74 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv6_flow() 77 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv6_flow() 113 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag); in mlx5e_accel_fs_add_inpcb() 114 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_header in mlx5e_accel_fs_add_inpcb() 178 static u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; accel_fs_tcp_add_default_rule() local [all...] |
H A D | mlx5_eswitch.c | 235 dmac_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_fdb_set_vport_rule() 270 void *match_criteria; in esw_create_fdb_table() local 304 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_fdb_table() 305 dmac = MLX5_ADDR_OF(fte_match_param, match_criteria, outer_headers.dmac_47_16); in esw_create_fdb_table() 608 void *match_criteria; in esw_vport_enable_egress_acl() local 641 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_vport_enable_egress_acl() 642 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_vport_enable_egress_acl() 643 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.first_vid); in esw_vport_enable_egress_acl() 710 void *match_criteria; in esw_vport_enable_ingress_acl() local 743 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_vport_enable_ingress_acl() [all …]
|
H A D | flow_table.h | 37 u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; member 46 void *match_criteria, void *flow_context,
|
H A D | mlx5_fs_tree.c |
|
H A D | mlx5_fs_core.c | 473 if (spec->match_value[i] & ~spec->match_criteria[i]) { in check_valid_spec() 756 const void *match_criteria, in alloc_flow_group() argument 770 memcpy(&fg->mask.match_criteria, match_criteria, in alloc_flow_group() 771 sizeof(fg->mask.match_criteria)); in alloc_flow_group() 781 const void *match_criteria, in alloc_insert_flow_group() argument 790 fg = alloc_flow_group(steering, match_criteria_enable, match_criteria, in alloc_insert_flow_group() 1275 void *match_criteria = MLX5_ADDR_OF(create_flow_group_in, in mlx5_create_flow_group() local 1276 fg_in, match_criteria); in mlx5_create_flow_group() 1291 fg = alloc_insert_flow_group(ft, match_criteria_enable, match_criteria, in mlx5_create_flow_group() 1494 spec->match_criteria, in alloc_auto_flow_group() [all …]
|
/freebsd/sys/dev/mlx5/ |
H A D | fs.h | 143 u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; 247 static inline bool outer_header_zero(u32 *match_criteria) 250 char *outer_headers_c = MLX5_ADDR_OF(fte_match_param, match_criteria, 309 * match_criteria 357 void mlx5_get_match_criteria(u32 *match_criteria, 375 u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; 382 u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; 81 u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; global() member 127 outer_header_zero(u32 * match_criteria) outer_header_zero() argument 239 u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; global() member 246 u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; global() member
|
H A D | mlx5_ifc.h | 5469 struct mlx5_ifc_fte_match_param_bits match_criteria; member 8278 struct mlx5_ifc_fte_match_param_bits match_criteria; member
|
/freebsd/sys/dev/mlx5/mlx5_accel/ |
H A D | mlx5_ipsec_fs.c | 161 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.frag); in setup_fte_no_frags() 170 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in setup_fte_esp() 180 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters.inner_esp_spi); in setup_fte_spi() 183 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters.outer_esp_spi); in setup_fte_spi() 194 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_vid() 198 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_vid() 207 MLX5_SET(fte_match_param, spec->match_criteria, in clear_fte_vid() 211 MLX5_SET(fte_match_param, spec->match_criteria, in clear_fte_vid() 220 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_no_vid() 469 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in setup_fte_addr4() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_flow_table.c | 258 u8 *mc_dmac = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5e_add_eth_addr_rule_sub() 272 mc = (u8 *)spec->match_criteria; in mlx5e_add_eth_addr_rule_sub() 486 mc = (u8 *)spec->match_criteria; in mlx5e_add_main_vxlan_rules_sub() 679 mc = (u8 *)spec->match_criteria; in mlx5e_add_vlan_rule_sub() 1264 u8 *mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5e_create_main_groups_sub() 1266 match_criteria.outer_headers.dmac_47_16); in mlx5e_create_main_groups_sub() 1425 u8 *mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5e_create_main_vxlan_groups_sub() 1557 u8 *mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5e_create_vlan_groups_sub() 1680 mc = (u8 *)spec->match_criteria; in mlx5e_add_vxlan_rule_sub() 1957 u8 *mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5e_create_vxlan_groups_sub() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_main.c | 1779 #define HEADER_IS_ZERO(match_criteria, headers) \ argument 1780 !(memchr_inv(MLX5_ADDR_OF(fte_match_param, match_criteria, headers), \ 1783 static u8 get_match_criteria_enable(u32 *match_criteria) in get_match_criteria_enable() argument 1788 (!HEADER_IS_ZERO(match_criteria, outer_headers)) << in get_match_criteria_enable() 1791 (!HEADER_IS_ZERO(match_criteria, misc_parameters)) << in get_match_criteria_enable() 1794 (!HEADER_IS_ZERO(match_criteria, inner_headers)) << in get_match_criteria_enable() 2207 err = parse_flow_attr(spec->match_criteria, in create_flow_rule() 2215 spec->match_criteria_enable = get_match_criteria_enable(spec->match_criteria); in create_flow_rule()
|