numam-dpdk/drivers/net/virtio
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
..
virtio_user net/virtio-user: fix build with icc 2016-06-30 07:46:29 +02:00
Makefile mk: fix internal dependencies 2016-06-29 13:33:01 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c drivers: update registration macro usage 2016-07-06 23:21:40 +02:00
virtio_ethdev.h net/virtio-user: add virtual device 2016-06-22 09:47:12 +02:00
virtio_logs.h virtio: fix newline under debug mode 2016-05-10 10:52:01 -07:00
virtio_pci.c net/virtio: hide vring address check inside PCI ops 2016-06-22 09:47:12 +02:00
virtio_pci.h net/virtio-user: add new virtual PCI driver 2016-06-22 09:47:12 +02:00
virtio_ring.h net/virtio: fix used index retrieved only once 2016-06-22 09:47:12 +02:00
virtio_rxtx_simple.c net/virtio: fix used index retrieved only once 2016-06-22 09:47:12 +02:00
virtio_rxtx.c net/virtio: allow virtual address to fill vring descriptors 2016-06-22 09:47:12 +02:00
virtio_rxtx.h net/virtio: split Rx/Tx queue 2016-06-22 06:10:54 +02:00
virtio_user_ethdev.c drivers: update registration macro usage 2016-07-06 23:21:40 +02:00
virtqueue.c virtio: check virtqueue parameter when detaching 2015-07-19 22:24:42 +02:00
virtqueue.h net/virtio: allow virtual address to fill vring descriptors 2016-06-22 09:47:12 +02:00