From: Anatoly Burakov Date: Wed, 4 Apr 2018 14:40:46 +0000 (+0100) Subject: bus/fslmc: do not needlessly check for IOVA mode X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=634d549c9c34385b86b1ca4d422adcc20c696517;p=dpdk.git bus/fslmc: do not needlessly check for IOVA mode We already set IOVA addresses of memsegs and memzones to VA address during initialization, so we don't need to check whether we're in RTE_IOVA_VA mode anywhere else. Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov Acked-by: Hemant Agrawal Acked-by: Santosh Shukla --- diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 62499de05c..4291871d51 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -219,10 +219,7 @@ int rte_fslmc_vfio_dmamap(void) dma_map.size = memseg[i].len; dma_map.vaddr = memseg[i].addr_64; #ifdef RTE_LIBRTE_DPAA2_USE_PHYS_IOVA - if (rte_eal_iova_mode() == RTE_IOVA_VA) - dma_map.iova = dma_map.vaddr; - else - dma_map.iova = memseg[i].iova; + dma_map.iova = memseg[i].iova; #else dma_map.iova = dma_map.vaddr; #endif