With the rte_bus infrastructure present in 17.02 it is possible to refactor the virtual device probing into a bus. This series also introduces the rte_vdev_device to better keep track of devices.
This patchset depends on: http://dpdk.org/dev/patchwork/patch/20416/ http://dpdk.org/dev/patchwork/patch/20417/ Changes since version 1: * addition of rte_vdev_device_name() helper * removed rte_eal_dev_init() from *.map files * use SOCKET_ID_ANY Jan Blunck (8): eal: use different constructor priorities for initcalls eal: probe legacy PCI devices before other bus devices eal: move virtual device probing into a bus eal: remove unused rte_eal_dev_init() eal: Refactor vdev driver probe/remove eal: add struct rte_vdev_device eal: add virtual device name helper function eal: make virtual bus use rte_vdev_device lib/librte_eal/bsdapp/eal/eal.c | 9 +- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +- lib/librte_eal/common/eal_common_dev.c | 28 --- lib/librte_eal/common/eal_common_vdev.c | 252 +++++++++++++++++++++--- lib/librte_eal/common/include/rte_bus.h | 17 +- lib/librte_eal/common/include/rte_dev.h | 5 - lib/librte_eal/common/include/rte_eal.h | 12 +- lib/librte_eal/common/include/rte_tailq.h | 2 +- lib/librte_eal/common/include/rte_vdev.h | 7 + lib/librte_eal/linuxapp/eal/eal.c | 9 +- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 - 11 files changed, 268 insertions(+), 81 deletions(-) -- 2.7.4