bus/vdev: add custom scan hook
authorThomas Monjalon <thomas@monjalon.net>
Fri, 1 Dec 2017 00:27:10 +0000 (01:27 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Jan 2018 23:39:20 +0000 (00:39 +0100)
commit3b792ed9c84003ffc78f0dbdd85ba9780d3b193d
treef474d03beba906fce8d36288ac4a79b215f7bd51
parent8f40ee0734c82fa10b5fa62176211ed1c5f71886
bus/vdev: add custom scan hook

The scan callback allows to spawn a vdev automatically
given some custom scan rules.
It is especially useful to create a TAP device automatically
connected to a netdevice as remote.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
drivers/bus/vdev/rte_bus_vdev.h
drivers/bus/vdev/rte_bus_vdev_version.map
drivers/bus/vdev/vdev.c