eal: add PMD_REGISTER_DRIVER macro
authorNeil Horman <nhorman@tuxdriver.com>
Mon, 21 Apr 2014 14:59:27 +0000 (10:59 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 20 May 2014 12:27:59 +0000 (14:27 +0200)
commit3ac2bd97d9b2e8362348d83f711c36e52b7c2024
tree5e47881e10bac375443b7c5ac56546874ecc1b9b
parent61d931aaee554b14a00d2b7d4f7d5bb120c6c90c
eal: add PMD_REGISTER_DRIVER macro

Rather than have each driver have to remember to add a constructor to it to make
sure its gets registered properly, wrap that process up in a macro to make
registration a one line affair.  This also sets the stage for us to make
registration of vdev pmds and physical pmds a uniform process

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/common/include/rte_vdev.h