numam-dpdk/drivers/net/e1000
Neil Horman cb6696d220 drivers: update registration macro usage
Modify the PMD_REGISTER_DRIVER macro, adding a name argument to it.  The
addition of a name argument creates a token that can be used for subsequent
macros in the creation of unique symbol names to export additional bits of
information for use by the pmdinfogen tool.  For example:

PMD_REGISTER_DRIVER(ena_driver, ena);

registers the ena_driver struct as it always did, and creates a symbol
const char this_pmd_name0[] __attribute__((used)) = "ena";

which pmdinfogen can search for and extract.  The subsequent macro

DRIVER_REGISTER_PCI_TABLE(ena, ena_pci_id_map);

creates a symbol const char ena_pci_tbl_export[] __attribute__((used)) =
"ena_pci_id_map";

Which allows pmdinfogen to find the pci table of this driver

Using this pattern, we can export arbitrary bits of information.

pmdinfo uses this information to extract hardware support from an object
file and create a json string to make hardware support info discoverable
later.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Remy Horton <remy.horton@intel.com>
2016-07-06 23:21:40 +02:00
..
base net/e1000/base: fix build with gcc 6 2016-06-27 17:03:30 +02:00
e1000_ethdev.h igb: support ieee1588 functions for device time 2015-11-13 17:44:41 +01:00
e1000_logs.h drivers: allow pruning log during build 2015-07-30 20:16:04 +02:00
em_ethdev.c drivers: update registration macro usage 2016-07-06 23:21:40 +02:00
em_rxtx.c mbuf: add new Rx flags for stripped VLAN 2016-06-15 17:18:57 +02:00
igb_ethdev.c drivers: update registration macro usage 2016-07-06 23:21:40 +02:00
igb_pf.c igb: fix constant sign in left shift operator 2016-03-31 17:09:56 +02:00
igb_regs.h igb: add access to specific device info 2015-07-16 23:56:13 +02:00
igb_rxtx.c mbuf: add new Rx flags for stripped VLAN 2016-06-15 17:18:57 +02:00
Makefile net/e1000: fix build with clang 2016-06-15 17:13:56 +02:00
rte_pmd_e1000_version.map e1000: move to drivers/net/ 2015-05-22 15:51:38 +02:00