mem: honor IOVA mode for no-huge case
authorJianfeng Tan <jianfeng.tan@intel.com>
Wed, 11 Oct 2017 10:33:47 +0000 (10:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 20:05:21 +0000 (21:05 +0100)
commit7100dfe381701103c194252ba23f05fa8d9a788c
treedfad9ecf5f76ce669ad1da76f46ad92a55fb7c8e
parent84e0ded38ac5564f89576843466e2385128c83f2
mem: honor IOVA mode for no-huge case

With the introduction of IOVA mode, the only blocker to run
with 4KB pages for NICs binding to vfio-pci, is that
RTE_BAD_PHYS_ADDR is not a valid IOVA address.

We can refine this by using VA as IOVA if it's IOVA mode.

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
lib/librte_eal/linuxapp/eal/eal_memory.c