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
pci: use new address comparison function
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_pci_uio.c
diff --git
a/lib/librte_eal/common/eal_common_pci_uio.c
b/lib/librte_eal/common/eal_common_pci_uio.c
index
367a681
..
9df3833
100644
(file)
--- a/
lib/librte_eal/common/eal_common_pci_uio.c
+++ b/
lib/librte_eal/common/eal_common_pci_uio.c
@@
-61,7
+61,7
@@
pci_uio_map_secondary(struct rte_pci_device *dev)
TAILQ_FOREACH(uio_res, uio_res_list, next) {
/* skip this element if it doesn't match our PCI address */
TAILQ_FOREACH(uio_res, uio_res_list, next) {
/* skip this element if it doesn't match our PCI address */
- if (rte_
eal_compare_pci_addr
(&uio_res->pci_addr, &dev->addr))
+ if (rte_
pci_addr_cmp
(&uio_res->pci_addr, &dev->addr))
continue;
for (i = 0; i != uio_res->nb_maps; i++) {
continue;
for (i = 0; i != uio_res->nb_maps; i++) {
@@
-187,7
+187,7
@@
pci_uio_find_resource(struct rte_pci_device *dev)
TAILQ_FOREACH(uio_res, uio_res_list, next) {
/* skip this element if it doesn't match our PCI address */
TAILQ_FOREACH(uio_res, uio_res_list, next) {
/* skip this element if it doesn't match our PCI address */
- if (!rte_
eal_compare_pci_addr
(&uio_res->pci_addr, &dev->addr))
+ if (!rte_
pci_addr_cmp
(&uio_res->pci_addr, &dev->addr))
return uio_res;
}
return NULL;
return uio_res;
}
return NULL;