Skip to content

Commit

Permalink
regex/mlx5: fix number of supported queues
Browse files Browse the repository at this point in the history
[ upstream commit 7a7a990 ]

The RegEx engine has no limitation on number of queues.
This commits modifies the max supported queues reported to the application.

Fixes: fbc8c70 ("regex/mlx5: add completion queue creation")

Signed-off-by: Ori Kam <orika@nvidia.com>
  • Loading branch information
orikam authored and bluca committed Feb 4, 2021
1 parent 89c875e commit caa3b25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/regex/mlx5/mlx5_rxp.c
Expand Up @@ -115,11 +115,10 @@ mlx5_regex_info_get(struct rte_regexdev *dev __rte_unused,
info->max_payload_size = MLX5_REGEX_MAX_PAYLOAD_SIZE;
info->max_rules_per_group = MLX5_REGEX_MAX_RULES_PER_GROUP;
info->max_groups = MLX5_REGEX_MAX_GROUPS;
info->max_queue_pairs = 1;
info->regexdev_capa = RTE_REGEXDEV_SUPP_PCRE_GREEDY_F |
RTE_REGEXDEV_CAPA_QUEUE_PAIR_OOS_F;
info->rule_flags = 0;
info->max_queue_pairs = 10;
info->max_queue_pairs = UINT16_MAX;
return 0;
}

Expand Down

0 comments on commit caa3b25

Please sign in to comment.