Signed-off-by: Jan Blunck <jblu...@infradead.org>
---
 lib/librte_eal/common/eal_common_vdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/eal_common_vdev.c 
b/lib/librte_eal/common/eal_common_vdev.c
index ff6a3b571..d04015582 100644
--- a/lib/librte_eal/common/eal_common_vdev.c
+++ b/lib/librte_eal/common/eal_common_vdev.c
@@ -260,7 +260,7 @@ vdev_scan(void)
        /* for virtual devices we scan the devargs_list populated via cmdline */
        TAILQ_FOREACH(devargs, &devargs_list, next) {
 
-               if (devargs->bus != &rte_vdev_bus)
+               if (strcmp(devargs->busname, rte_vdev_bus.name) != 0)
                        continue;
 
                dev = find_vdev(devargs->name);
-- 
2.13.2

Reply via email to