4ebbe84dae
This commit fixes a compilation error if EM_PMD is
not defined, bug IGB_PMD is. The root cause of the
issue was that log init variables are declared as
extern in a header file, while the definition of the
variables was in e1000_ethdev.c. Hence, the definitions
were not available if the e1000 PMD is disabled.
To fix this, a new file is added e1000_logs.c, which
matches the e1000_logs.h header. The log variables are
always compiled in, but the PMD logs are only registered
if a PMD is enabled in the configuration. Extra checks
are added in order to avoid duplicate registering.
Fixes:
|
||
---|---|---|
.. | ||
base | ||
e1000_ethdev.h | ||
e1000_logs.c | ||
e1000_logs.h | ||
em_ethdev.c | ||
em_rxtx.c | ||
igb_ethdev.c | ||
igb_flow.c | ||
igb_pf.c | ||
igb_regs.h | ||
igb_rxtx.c | ||
Makefile | ||
meson.build | ||
rte_pmd_e1000_version.map |