numam-dpdk/drivers/net/e1000
Harry van Haaren 4ebbe84dae net/e1000: fix build of igb only
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: ed5bbb767c ("net/e1000: implement dynamic logging")
Cc: stable@dpdk.org

Reported-by: Vipin Varghese <vipin.varghese@intel.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Vipin Varghese <vipin.varghese@intel.com>
2018-05-23 00:35:01 +02:00
..
base net/e1000: add minimum support for Broadcom 54616 PHY 2018-05-14 22:31:48 +01:00
e1000_ethdev.h ethdev: flatten RSS configuration in flow API 2018-04-27 18:00:53 +01:00
e1000_logs.c net/e1000: fix build of igb only 2018-05-23 00:35:01 +02:00
e1000_logs.h net/e1000: fix build of igb only 2018-05-23 00:35:01 +02:00
em_ethdev.c net/e1000: fix build of igb only 2018-05-23 00:35:01 +02:00
em_rxtx.c ethdev: new Rx/Tx offloads API 2018-05-14 22:31:51 +01:00
igb_ethdev.c net/e1000: fix build of igb only 2018-05-23 00:35:01 +02:00
igb_flow.c ethdev: add transfer attribute to flow API 2018-04-27 18:00:54 +01:00
igb_pf.c ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
igb_regs.h drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
igb_rxtx.c net/e1000: report Tx multi segment offload 2018-05-14 22:31:52 +01:00
Makefile net/e1000: fix build of igb only 2018-05-23 00:35:01 +02:00
meson.build net/e1000: fix build of igb only 2018-05-23 00:35:01 +02:00
rte_pmd_e1000_version.map e1000: move to drivers/net/ 2015-05-22 15:51:38 +02:00