numam-dpdk/drivers/common/mlx5
Thomas Monjalon 3be42081ba drivers: fix log level after loading
When compiled as a shared object, and loaded at runtime as a plugin,
the drivers should get the log level set earlier at EAL init
by the user through --log-level option.

The function for applying the log level setting is
rte_log_register_type_and_pick_level().
It is called by most drivers via RTE_LOG_REGISTER().

The drivers common/mlx5, bcmfs and e1000 were missing,
so the user-specified log level was not applied when
those drivers were loaded as plugins.
The macro RTE_LOG_REGISTER() is used for those drivers.

The unnecessary protection for double registration
is removed from e1000.

Fixes: 9c99878aa1 ("log: introduce logtype register macro")
Fixes: c8e79da7c6 ("crypto/bcmfs: introduce BCMFS driver")
Cc: stable@dpdk.org

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2021-04-08 18:32:31 +02:00
..
linux common/mlx5: support sub-function representor parsing 2021-03-31 09:16:23 +02:00
windows common/mlx5: share DevX CQ creation 2021-01-14 10:12:36 +01:00
meson.build config: remove compatibility build defines 2021-01-20 01:43:25 +01:00
mlx5_common_devx.c common/mlx5: share DevX RQ creation 2021-01-14 10:12:36 +01:00
mlx5_common_devx.h common/mlx5: share DevX RQ creation 2021-01-14 10:12:36 +01:00
mlx5_common_mp.c common/mlx5: convert control path memory to unified malloc 2020-07-21 15:46:21 +02:00
mlx5_common_mp.h net/mlx5: add queue start and stop 2020-07-21 15:46:30 +02:00
mlx5_common_mr.c net/mlx5: enable debug logs dynamically 2021-03-15 14:30:55 +01:00
mlx5_common_mr.h common/mlx5: add reg/dereg MR on Windows 2021-01-08 16:03:07 +01:00
mlx5_common_pci.c pci: rename catch-all ID 2021-04-06 14:52:49 +02:00
mlx5_common_pci.h compress/mlx5: introduce PMD 2021-01-27 20:40:03 +01:00
mlx5_common_utils.h common/mlx5: introduce common library 2020-02-05 09:51:20 +01:00
mlx5_common.c drivers: fix log level after loading 2021-04-08 18:32:31 +02:00
mlx5_common.h common/mlx5: support sub-function representor parsing 2021-03-31 09:16:23 +02:00
mlx5_devx_cmds.c common/mlx5: add timestamp format support to DevX 2021-03-16 10:05:32 +01:00
mlx5_devx_cmds.h common/mlx5: add timestamp format support to DevX 2021-03-16 10:05:32 +01:00
mlx5_malloc.c common/mlx5: wrap memory allocation on Linux 2021-01-08 16:03:07 +01:00
mlx5_malloc.h common/mlx5: fix aligned malloc 2020-09-18 18:55:11 +02:00
mlx5_prm.h common/mlx5: add timestamp format support to DevX 2021-03-16 10:05:32 +01:00
version.map build: remove Windows export symbol list 2021-04-08 17:57:33 +02:00