bus/fslmc: fix physical addressing check

In case RTE_LIBRTE_DPAA2_USE_PHYS_IOVA is enabled, only supported
class is RTE_IOVA_PA.

Fixes: f7768afac1 ("bus/fslmc: support dynamic IOVA")
Cc: stable@dpdk.org

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
This commit is contained in:
Shreyansh Jain 2018-10-15 17:31:52 +05:30 committed by Thomas Monjalon
parent c89fdd8da2
commit 0947cfde25

View File

@ -496,6 +496,10 @@ rte_dpaa2_get_iommu_class(void)
if (TAILQ_EMPTY(&rte_fslmc_bus.device_list))
return RTE_IOVA_DC;
#ifdef RTE_LIBRTE_DPAA2_USE_PHYS_IOVA
return RTE_IOVA_PA;
#endif
/* check if all devices on the bus support Virtual addressing or not */
has_iova_va = fslmc_all_device_support_iova();