regex/mlx5: add out-of-order scan capability
authorOphir Munk <ophirmu@nvidia.com>
Wed, 28 Oct 2020 13:18:58 +0000 (13:18 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 3 Nov 2020 01:03:30 +0000 (02:03 +0100)
Add missing out of order scan capability
RTE_REGEXDEV_CAPA_QUEUE_PAIR_OOS_F to mlx5 regex PMD.

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
drivers/regex/mlx5/mlx5_rxp.c

index b8fab79..7936a52 100644 (file)
@@ -116,7 +116,8 @@ mlx5_regex_info_get(struct rte_regexdev *dev __rte_unused,
        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;
+       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;
        return 0;