numam-dpdk/drivers/net/mlx5
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 net/mlx5: refactor Tx data path 2016-06-27 16:17:52 +02:00
mlx5_defs.h net/mlx5: replace countdown with threshold for Tx completions 2016-06-27 16:17:52 +02:00
mlx5_ethdev.c net/mlx: fix build with icc 2016-06-28 11:49:09 +02:00
mlx5_fdir.c net/mlx5: refactor Rx data path 2016-06-27 16:17:52 +02:00
mlx5_mac.c net/mlx: fix compilation with glibc 2.20 2016-06-20 17:21:34 +02:00
mlx5_mr.c net/mlx5: refactor Tx data path 2016-06-27 16:17:52 +02:00
mlx5_prm.h net/mlx5: add definitions for data path without Verbs 2016-06-27 16:17:52 +02:00
mlx5_rss.c mlx5: fix null RSS key handling 2016-03-25 19:01:37 +01:00
mlx5_rxmode.c net/mlx: fix build with icc 2016-06-28 11:49:09 +02:00
mlx5_rxq.c net/mlx: fix build with icc 2016-06-28 11:49:09 +02:00
mlx5_rxtx.c net/mlx5: re-add Rx scatter support 2016-06-27 16:17:52 +02:00
mlx5_rxtx.h net/mlx5: re-add Rx scatter support 2016-06-27 16:17:52 +02:00
mlx5_stats.c mlx5: allow operation in secondary processes 2016-03-25 18:56:44 +01:00
mlx5_trigger.c mlx5: allow operation in secondary processes 2016-03-25 18:56:44 +01:00
mlx5_txq.c net/mlx5: re-add Tx gather support 2016-06-27 16:17:52 +02:00
mlx5_utils.h remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
mlx5_vlan.c net/mlx5: refactor Rx data path 2016-06-27 16:17:52 +02:00
mlx5.c drivers: update registration macro usage 2016-07-06 23:21:40 +02:00
mlx5.h net/mlx5: support inline send 2016-06-27 16:17:52 +02:00
rte_pmd_mlx5_version.map mlx5: introduce new driver for Mellanox ConnectX-4 adapters 2015-10-30 22:03:42 +01:00