The `dev_vfio_noiommu_is_enabled()` check has now been replaced by the new IOMMU mode API, so remove it.
Signed-off-by: Anatoly Burakov <[email protected]> --- lib/eal/freebsd/eal.c | 7 ------- lib/eal/include/dev_vfio.h | 14 -------------- lib/eal/linux/eal_vfio.c | 7 ------- 3 files changed, 28 deletions(-) diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c index 574a3a9fa4..62b8e04ea1 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -860,13 +860,6 @@ dev_vfio_is_enabled(__rte_unused const char *modname) return 0; } -RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_noiommu_is_enabled) -int -dev_vfio_noiommu_is_enabled(void) -{ - return 0; -} - RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_get_group_num) int dev_vfio_get_group_num(__rte_unused const char *sysfs_base, diff --git a/lib/eal/include/dev_vfio.h b/lib/eal/include/dev_vfio.h index c62d38e524..cd7232ccd5 100644 --- a/lib/eal/include/dev_vfio.h +++ b/lib/eal/include/dev_vfio.h @@ -203,20 +203,6 @@ __rte_internal enum dev_vfio_iommu_mode dev_vfio_get_iommu_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 f35bf77730..884710be11 100644 --- a/lib/eal/linux/eal_vfio.c +++ b/lib/eal/linux/eal_vfio.c @@ -1400,13 +1400,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.iommu_mode == DEV_VFIO_IOMMU_MODE_UNSAFE; -} - RTE_EXPORT_INTERNAL_SYMBOL(dev_vfio_container_create) int dev_vfio_container_create(void) -- 2.52.0

