[dpdk-dev] [PATCH v2 1/4] net/mlx4: enable debug logs dynamically
Thomas Monjalon
thomas at monjalon.net
Wed Mar 17 18:47:42 CET 2021
17/03/2021 18:29, Ferruh Yigit:
> On 3/9/2021 9:48 AM, Thomas Monjalon wrote:
> > The macro DEBUG was doing nothing if not compiled with
> > RTE_LIBRTE_MLX4_DEBUG.
> >
> > As it is not used in the data path, it can be always enabled at
> > compilation time. Then it can be enabled at runtime with:
> > --log-level pmd.net.mlx4:debug
> >
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
>
> +1 to change, but why 'RTE_LIBRTE_MLX4_DEBUG' exists at first place?
>
> It seems is is used both for data and control path, can you extend the patch for:
> 1- Remove #ifdef from control path
> 2- Replace with 'RTE_ETHDEV_DEBUG_RX' & 'RTE_ETHDEV_DEBUG_TX' for data path,
> please see: https://patches.dpdk.org/project/dpdk/list/?series=15738
> 3- Remove 'RTE_LIBRTE_MLX4_DEBUG' completely, if not removed document it in the
> driver documentation as supported config file
To me using ETHDEV config macro in PMDs is new,
and I think it is out of scope for this patch.
But yes I agree it would be a nice improvement.
Matan, please could you do this change during next month?
More information about the dev
mailing list