dpdk: only look at PCI information on PCI devices
[vpp.git] / src / plugins / dpdk / device / init.c
index 5479f81..086d322 100644 (file)
@@ -278,7 +278,8 @@ dpdk_lib_init (dpdk_main_t * dm)
                        dev_info.driver_name);
          continue;
        }
-      pci_dev = RTE_DEV_TO_PCI (dev_info.device);
+
+      pci_dev = dpdk_get_pci_device (&dev_info);
 
       if (pci_dev)     /* bonded interface has no pci info */
        {