summaryrefslogtreecommitdiff
path: root/lib/librte_eal/common/eal_common_bus.c
diff options
context:
space:
mode:
authorJan Blunck <jblunck@infradead.org>2017-06-30 20:19:36 +0200
committerThomas Monjalon <thomas@monjalon.net>2017-07-04 01:08:27 +0200
commitdd288f0dfbfe8159ca80719de0a0c477698d0226 (patch)
tree77b7e90b45b7daa0bc114c9a4f9b681d50a26ab7 /lib/librte_eal/common/eal_common_bus.c
parent9188a3f596a4e206e07e6c501e30067c6d6cb43a (diff)
downloaddpdk-dd288f0dfbfe8159ca80719de0a0c477698d0226.zip
dpdk-dd288f0dfbfe8159ca80719de0a0c477698d0226.tar.gz
dpdk-dd288f0dfbfe8159ca80719de0a0c477698d0226.tar.xz
bus: require to implement device finding
Signed-off-by: Jan Blunck <jblunck@infradead.org>
Diffstat (limited to 'lib/librte_eal/common/eal_common_bus.c')
-rw-r--r--lib/librte_eal/common/eal_common_bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_eal/common/eal_common_bus.c b/lib/librte_eal/common/eal_common_bus.c
index 3094daa..e04ab4f 100644
--- a/lib/librte_eal/common/eal_common_bus.c
+++ b/lib/librte_eal/common/eal_common_bus.c
@@ -50,6 +50,7 @@ rte_bus_register(struct rte_bus *bus)
/* A bus should mandatorily have the scan implemented */
RTE_VERIFY(bus->scan);
RTE_VERIFY(bus->probe);
+ RTE_VERIFY(bus->find_device);
TAILQ_INSERT_TAIL(&rte_bus_list, bus, next);
RTE_LOG(DEBUG, EAL, "Registered [%s] bus.\n", bus->name);