Skip to content

Commit

Permalink
regexdev: fix logtype register
Browse files Browse the repository at this point in the history
[ upstream commit 6351bdeb975dcf4b00ae1319f1d901eb65d4d4d3 ]

This library logtype was not initialized so its logs would end up under
the 0 logtype, iow, RTE_LOGTYPE_EAL.

Fixes: b25246b ("regexdev: add core functions")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Ori Kam <orika@nvidia.com>
  • Loading branch information
david-marchand authored and kevintraynor committed Mar 1, 2024
1 parent 014409d commit 570eff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/regexdev/rte_regexdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static struct {
struct rte_regexdev_data data[RTE_MAX_REGEXDEV_DEVS];
} *rte_regexdev_shared_data;

int rte_regexdev_logtype;
RTE_LOG_REGISTER_DEFAULT(rte_regexdev_logtype, INFO);

static uint16_t
regexdev_find_free_dev(void)
Expand Down

0 comments on commit 570eff6

Please sign in to comment.