[v4,02/14] regexdev: fix logtype register
Checks
Commit Message
This library logtype was not initialized so its logs would end up under
the 0 logtype, iow, RTE_LOGTYPE_EAL.
Fixes: b25246beaefc ("regexdev: add core functions")
Cc: stable@dpdk.org
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>
---
lib/regexdev/rte_regexdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, 18 Dec 2023 15:37:51 +0100
David Marchand <david.marchand@redhat.com> wrote:
> This library logtype was not initialized so its logs would end up under
> the 0 logtype, iow, RTE_LOGTYPE_EAL.
>
> Fixes: b25246beaefc ("regexdev: add core functions")
> Cc: stable@dpdk.org
>
> 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>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
@@ -19,7 +19,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)