eal: introduce driver init macros
authorDavid Marchand <david.marchand@6wind.com>
Tue, 20 Sep 2016 12:41:18 +0000 (18:11 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 3 Oct 2016 14:33:12 +0000 (16:33 +0200)
commit83dae4213d00cf37d4ecd388bcc9084a08e62d5b
treec2fac451e920101122c9da898661b801bf614b18
parentc76a6d356f78fdc83f01df88eb84aee771e6c72d
eal: introduce driver init macros

Introduce a RTE_INIT macro used to mark an init function as a constructor.
Current eal macros have been converted to use this (no functional impact).
DRIVER_REGISTER_PCI is added as a helper for pci drivers.

Suggested-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
[Shreyansh: Update PCI Registration macro name]
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
lib/librte_eal/common/include/rte_dev.h
lib/librte_eal/common/include/rte_eal.h
lib/librte_eal/common/include/rte_pci.h
lib/librte_eal/common/include/rte_tailq.h