All devices in the rte_eal_vdev_init/uninit are always virtual devices.

Signed-off-by: Jan Viktorin <viktorin at rehivetech.com>
---
 lib/librte_eal/common/eal_common_vdev.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/lib/librte_eal/common/eal_common_vdev.c 
b/lib/librte_eal/common/eal_common_vdev.c
index ea83c41..5a74da8 100644
--- a/lib/librte_eal/common/eal_common_vdev.c
+++ b/lib/librte_eal/common/eal_common_vdev.c
@@ -60,9 +60,6 @@ rte_eal_vdev_init(const char *name, const char *args)
                return -EINVAL;

        TAILQ_FOREACH(driver, &vdev_driver_list, next) {
-               if (driver->driver.type != PMD_VDEV)
-                       continue;
-
                /*
                 * search a driver prefix in virtual device name.
                 * For example, if the driver is pcap PMD, driver->name
@@ -86,9 +83,6 @@ rte_eal_vdev_uninit(const char *name)
                return -EINVAL;

        TAILQ_FOREACH(driver, &vdev_driver_list, next) {
-               if (driver->driver.type != PMD_VDEV)
-                       continue;
-
                /*
                 * search a driver prefix in virtual device name.
                 * For example, if the driver is pcap PMD, driver->name
-- 
2.9.0

Reply via email to