X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fbus%2Fvdev%2Frte_bus_vdev.h;h=2bc46530c9bb059b1c4f397337c2d8e920e847c6;hb=e15b319bd3822aeeed75bece620df1e4428d2331;hp=f9b5eb596250aaf90eb7dff7e1f4399077d78302;hpb=3701b792a8a3bce519adc979d5cc8d127231fd48;p=dpdk.git diff --git a/drivers/bus/vdev/rte_bus_vdev.h b/drivers/bus/vdev/rte_bus_vdev.h index f9b5eb5962..2bc46530c9 100644 --- a/drivers/bus/vdev/rte_bus_vdev.h +++ b/drivers/bus/vdev/rte_bus_vdev.h @@ -5,6 +5,12 @@ #ifndef RTE_VDEV_H #define RTE_VDEV_H +/** + * @file + * RTE virtual bus API + * + */ + #ifdef __cplusplus extern "C" { #endif @@ -86,9 +92,8 @@ void rte_vdev_register(struct rte_vdev_driver *driver); void rte_vdev_unregister(struct rte_vdev_driver *driver); #define RTE_PMD_REGISTER_VDEV(nm, vdrv)\ -RTE_INIT(vdrvinitfn_ ##vdrv);\ static const char *vdrvinit_ ## nm ## _alias;\ -static void vdrvinitfn_ ##vdrv(void)\ +RTE_INIT(vdrvinitfn_ ##vdrv)\ {\ (vdrv).driver.name = RTE_STR(nm);\ (vdrv).driver.alias = vdrvinit_ ## nm ## _alias;\