numam-dpdk/drivers/common
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
..
cpt common/cpt: remove redundant structure 2020-11-12 21:47:42 +01:00
dpaax bus/dpaa: fix build with musl 2021-03-23 08:41:05 +01:00
iavf common/iavf: support VLAN filtering 2021-01-29 18:16:07 +01:00
mlx5 drivers: fix log level after loading 2021-04-08 18:32:31 +02:00
mvep build: force pkg-config for dependency detection 2021-01-26 00:43:59 +01:00
octeontx build: remove library name from version map file name 2020-10-19 22:13:59 +02:00
octeontx2 net/octeontx2: support raw flow pattern 2021-03-20 15:16:55 +01:00
qat build: force pkg-config for dependency detection 2021-01-26 00:43:59 +01:00
sfc_efx common/sfc_efx: remove GENEVE from supported tunnels 2021-03-22 18:05:39 +01:00
meson.build common/sfc_efx: move function to get family 2021-03-16 12:39:42 +01:00