]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
vfio: fix secondary process start
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_pci_vfio.c
index ecb1a2078a2f399363ebd38dd9d03f42d2c14d19..2be131959bb7e0c81c5cc68b5d57ce8faf18f48e 100644 (file)
@@ -359,7 +359,8 @@ pci_vfio_map_resource(struct rte_pci_device *dev)
        } else {
                /* if we're in a secondary process, just find our tailq entry */
                TAILQ_FOREACH(vfio_res, vfio_res_list, next) {
-                       if (memcmp(&vfio_res->pci_addr, &dev->addr, sizeof(dev->addr)))
+                       if (rte_eal_compare_pci_addr(&vfio_res->pci_addr,
+                                                    &dev->addr))
                                continue;
                        break;
                }