git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vfio: fix secondary process start
[dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
eal
/
eal_pci_vfio.c
diff --git
a/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
b/lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
index
ecb1a20
..
2be1319
100644
(file)
--- a/
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
+++ b/
lib/librte_eal/linuxapp/eal/eal_pci_vfio.c
@@
-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) {
} 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;
}
continue;
break;
}