The `dev_vfio_noiommu_is_enabled()` check has now been replaced by the new IOVA mode API, so remove it.
Signed-off-by: Anatoly Burakov <[email protected]> --- lib/eal/include/dev_vfio.h | 14 -------------- lib/eal/linux/eal_vfio.c | 7 ------- 2 files changed, 21 deletions(-) diff --git a/lib/eal/include/dev_vfio.h b/lib/eal/include/dev_vfio.h index bca5bb36a6b..2f693ff761d 100644 --- a/lib/eal/include/dev_vfio.h +++ b/lib/eal/include/dev_vfio.h @@ -227,20 +227,6 @@ __rte_internal enum dev_vfio_iova_mode dev_vfio_get_iova_mode(void); -/** - * @internal - * Check if VFIO NOIOMMU mode is enabled. - * - * This function is only relevant on Linux. - * - * @return - * 1 if enabled. - * 0 if not enabled or not supported. - */ -__rte_internal -int -dev_vfio_noiommu_is_enabled(void); - /** * @internal * Parse IOMMU group number for a device. diff --git a/lib/eal/linux/eal_vfio.c b/lib/eal/linux/eal_vfio.c index e0cf806bbf8..57981270841 100644 --- a/lib/eal/linux/eal_vfio.c +++ b/lib/eal/linux/eal_vfio.c @@ -1452,13 +1452,6 @@ container_dma_unmap(struct vfio_container *cfg, uint64_t vaddr, uint64_t iova, return ret; } -RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_noiommu_is_enabled) -int -dev_vfio_noiommu_is_enabled(void) -{ - return vfio_global_cfg.iova_mode == DEV_VFIO_IOVA_MODE_PA; -} - RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_container_create) int dev_vfio_container_create(void) -- 2.52.0

