mem: hide physical address error in VA mode
If the IOVA mode is not using physical addresses, no need to log an error about physical address issue. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
This commit is contained in:
parent
4d93fccd2d
commit
0587fb9111
@ -107,10 +107,11 @@ test_phys_addrs_available(void)
|
|||||||
|
|
||||||
physaddr = rte_mem_virt2phy(&tmp);
|
physaddr = rte_mem_virt2phy(&tmp);
|
||||||
if (physaddr == RTE_BAD_PHYS_ADDR) {
|
if (physaddr == RTE_BAD_PHYS_ADDR) {
|
||||||
RTE_LOG(ERR, EAL,
|
if (rte_eal_iova_mode() == RTE_IOVA_PA)
|
||||||
"Cannot obtain physical addresses: %s. "
|
RTE_LOG(ERR, EAL,
|
||||||
"Only vfio will function.\n",
|
"Cannot obtain physical addresses: %s. "
|
||||||
strerror(errno));
|
"Only vfio will function.\n",
|
||||||
|
strerror(errno));
|
||||||
phys_addrs_available = false;
|
phys_addrs_available = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user