net/mlx5: enable debug logs dynamically
authorThomas Monjalon <thomas@monjalon.net>
Tue, 9 Mar 2021 09:48:34 +0000 (10:48 +0100)
committerRaslan Darawsheh <rasland@nvidia.com>
Mon, 15 Mar 2021 13:30:55 +0000 (14:30 +0100)
commit87acdcc78d9170e6f12d43384aed7fa593d44ab0
tree5bf89376daa88e76de744a84516092d01c78731a
parent7bc56bd04c249a9154165f4dda58e27e958aa621
net/mlx5: enable debug logs dynamically

Most debug logs are using DRV_LOG(DEBUG,)
but some were using DEBUG().
The macro DEBUG is doing nothing if not compiled with
RTE_LIBRTE_MLX5_DEBUG.

As it is not used in the data path, the macro DEBUG
can be replaced with DRV_LOG.
Then all debug logs can be enabled at runtime with:
--log-level pmd.net.mlx5:debug

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_common.h
drivers/common/mlx5/mlx5_common_mr.c
drivers/net/mlx5/linux/mlx5_verbs.c
drivers/net/mlx5/mlx5_mr.c
drivers/net/mlx5/mlx5_rxq.c