net/mlx5: free buffers in bulk on Tx completion
[dpdk.git] / lib / librte_eal / common / eal_common_bus.c
index bf2b138..87b0c6e 100644 (file)
@@ -51,6 +51,8 @@ rte_bus_register(struct rte_bus *bus)
        RTE_VERIFY(bus->scan);
        RTE_VERIFY(bus->probe);
        RTE_VERIFY(bus->find_device);
+       /* Buses supporting driver plug also require unplug. */
+       RTE_VERIFY(!bus->plug || bus->unplug);
 
        TAILQ_INSERT_TAIL(&rte_bus_list, bus, next);
        RTE_LOG(DEBUG, EAL, "Registered [%s] bus.\n", bus->name);