summaryrefslogtreecommitdiff
path: root/drivers/bus/fslmc
diff options
context:
space:
mode:
authorAnatoly Burakov <anatoly.burakov@intel.com>2018-04-04 15:40:46 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-04-11 02:18:03 +0200
commit634d549c9c34385b86b1ca4d422adcc20c696517 (patch)
tree560155f31a2cd40d77679bbf1f07aac2bd0bf0f9 /drivers/bus/fslmc
parent048303b6f3fdfb5ce863e293f6b3dfabc0a0a2db (diff)
downloaddpdk-634d549c9c34385b86b1ca4d422adcc20c696517.zip
dpdk-634d549c9c34385b86b1ca4d422adcc20c696517.tar.gz
dpdk-634d549c9c34385b86b1ca4d422adcc20c696517.tar.xz
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 <anatoly.burakov@intel.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Diffstat (limited to 'drivers/bus/fslmc')
-rw-r--r--drivers/bus/fslmc/fslmc_vfio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c
index 62499de..4291871 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