pci: use new address comparison function
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_pci_vfio.c
index 19994c8..3331b13 100644 (file)
@@ -576,8 +576,8 @@ pci_vfio_map_resource_secondary(struct rte_pci_device *dev)
 
        /* if we're in a secondary process, just find our tailq entry */
        TAILQ_FOREACH(vfio_res, vfio_res_list, next) {
-               if (rte_eal_compare_pci_addr(&vfio_res->pci_addr,
-                                                &dev->addr))
+               if (rte_pci_addr_cmp(&vfio_res->pci_addr,
+                                    &dev->addr))
                        continue;
                break;
        }