src/dpdk/lib/librte_eal/windows/eal_memory.c
rte_iova_t
rte_mem_virt2iova(const void *virt)
{
	phys_addr_t phys;

	if (virt2phys_device == INVALID_HANDLE_VALUE)
		return RTE_BAD_IOVA;

	phys = rte_mem_virt2phy(virt);
	if (phys == RTE_BAD_PHYS_ADDR)
		return RTE_BAD_IOVA;

	return (rte_iova_t)phys;
}
/* Windows currently only supports IOVA as PA. */
Windows currently only supports IOVA as PA.
Windows currently only supports IOVA as PA .
rte_iova_t
rte_mem_virt2iova(const void *virt)
{
	phys_addr_t phys;
	if (virt2phys_device == INVALID_HANDLE_VALUE)
		return RTE_BAD_IOVA;
	phys = rte_mem_virt2phy(virt);
	if (phys == RTE_BAD_PHYS_ADDR)
		return RTE_BAD_IOVA;
	return (rte_iova_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 ; phys = rte_mem_virt2phy ( virt ) ; if ( phys == RTE_BAD_PHYS_ADDR ) return RTE_BAD_IOVA ; return ( rte_iova_t ) phys ; }
Windows currently only supports IOVA as PA.
Windows currently only supports IOVA as PA .