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
mem: quiet base address hint warning if not requested
[dpdk.git]
/
lib
/
eal
/
windows
/
eal_memory.c
diff --git
a/lib/eal/windows/eal_memory.c
b/lib/eal/windows/eal_memory.c
index
71741fc
..
2fd37d9
100644
(file)
--- a/
lib/eal/windows/eal_memory.c
+++ b/
lib/eal/windows/eal_memory.c
@@
-225,19
+225,17
@@
rte_mem_virt2phy(const void *virt)
return phys.QuadPart;
}
return phys.QuadPart;
}
-/* Windows currently only supports IOVA as PA. */
rte_iova_t
rte_mem_virt2iova(const void *virt)
{
phys_addr_t phys;
rte_iova_t
rte_mem_virt2iova(const void *virt)
{
phys_addr_t phys;
- if (
virt2phys_device == INVALID_HANDLE_VALUE
)
- return
RTE_BAD_IOVA
;
+ if (
rte_eal_iova_mode() == RTE_IOVA_VA
)
+ return
(rte_iova_t)virt
;
phys = rte_mem_virt2phy(virt);
if (phys == RTE_BAD_PHYS_ADDR)
return RTE_BAD_IOVA;
phys = rte_mem_virt2phy(virt);
if (phys == RTE_BAD_PHYS_ADDR)
return RTE_BAD_IOVA;
-
return (rte_iova_t)phys;
}
return (rte_iova_t)phys;
}