[RFC v2 02/14] regexdev: fix logtype register

Ori Kam orika at nvidia.com
Thu Dec 14 11:11:42 CET 2023



> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Friday, December 8, 2023 5:00 PM
> 
> 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 at dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
>  lib/regexdev/rte_regexdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/regexdev/rte_regexdev.c b/lib/regexdev/rte_regexdev.c
> index caec069182..d38a85eb0b 100644
> --- a/lib/regexdev/rte_regexdev.c
> +++ b/lib/regexdev/rte_regexdev.c
> @@ -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)
> --
> 2.43.0

Acked-by: Ori Kam <orika at nvidia.com>
Best,
Or



More information about the stable mailing list