numam-dpdk/drivers/net/bonding
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
..
Makefile mk: fix missing internal dependencies 2016-06-13 16:17:56 +02:00
rte_eth_bond_8023ad_private.h net/bonding: allow external state machine in mode 4 2016-06-20 18:40:44 +02:00
rte_eth_bond_8023ad.c net/bonding: allow external state machine in mode 4 2016-06-20 18:40:44 +02:00
rte_eth_bond_8023ad.h net/bonding: allow external state machine in mode 4 2016-06-20 18:40:44 +02:00
rte_eth_bond_alb.c net/bonding: replace panic with errno code return 2016-06-20 17:21:48 +02:00
rte_eth_bond_alb.h bond: move to drivers/net/ 2015-05-22 15:51:38 +02:00
rte_eth_bond_api.c net/bonding: inherit maximum Rx packet length 2016-06-20 18:36:47 +02:00
rte_eth_bond_args.c bond: move to drivers/net/ 2015-05-22 15:51:38 +02:00
rte_eth_bond_pmd.c drivers: update registration macro usage 2016-07-06 23:21:40 +02:00
rte_eth_bond_private.h net/bonding: inherit maximum Rx packet length 2016-06-20 18:36:47 +02:00
rte_eth_bond_version.map net/bonding: allow external state machine in mode 4 2016-06-20 18:40:44 +02:00
rte_eth_bond.h bonding: support port hotplug 2015-07-27 19:20:44 +02:00