From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F559C61DBE for ; Tue, 25 Aug 2026 13:23:37 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4855240C35; Tue, 25 Aug 2026 15:21:56 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by mails.dpdk.org (Postfix) with ESMTP id 1D5D040C35 for ; Tue, 25 Aug 2026 15:21:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787664113; x=1819200113; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=TAGT97bmfa8vNmTovwmFv7tT6h0Zlm+TzqFbEpMRE8E=; b=iaEdsOxgH2023KFQYrtBIdtg5ktu9MtTt/Kf0VoIKP9j1A+DhcrsGmjV Qgk0qMF3o22eo061UXg2+EUA+8WTlV/pYL4wviEYf13QVCytdDLWioX8L zkN5VPnCigzn/u7FK4zsC3qJcoYN2IHHj5n5QY3Pdw9FfeZeVm7I/Qk0+ D7hp66YUnHJnQAk4G5KXofoKLXlCEI4YRorRWu0GJvkrbHtxtj5bA5z4l Cd0lo3tP1fAPpB4uKshobwq70V6jIwPRAUPp+vHww6wMB1ighyCOZOmxs 5ljp/xyUOQxp31Q56JPpFXXMs6RuayBvIoLsFmYwRrJxY6VKy068rOvJw Q==; X-CSE-ConnectionGUID: xX0WzYDIShyS7vyVpQomuA== X-CSE-MsgGUID: lDIzXIynQyq4VIYyvfH6dA== X-IronPort-AV: E=McAfee;i="6800,10657,11885"; a="88332746" X-IronPort-AV: E=Sophos;i="6.25,242,1779174000"; d="scan'208";a="88332746" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2026 06:21:53 -0700 X-CSE-ConnectionGUID: gT+GdJiwSRWuYBo+GoySHA== X-CSE-MsgGUID: 0SDbsrYcSdePLrfaMJ2hTw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,242,1779174000"; d="scan'208";a="264660912" Received: from silpixa00401119.ir.intel.com ([10.20.224.206]) by fmviesa008.fm.intel.com with ESMTP; 25 Aug 2026 06:21:52 -0700 From: Anatoly Burakov To: dev@dpdk.org, Bruce Richardson Subject: [PATCH v12 19/20] vfio: remove no-IOMMU check API Date: Tue, 25 Aug 2026 14:21:16 +0100 Message-ID: <6b42d22666d1cef0892875d0c528e42d8d178efc.1787663787.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The `rte_vfio_noiommu_is_enabled()` check has now been replaced by the new mode API, so remove it. Signed-off-by: Anatoly Burakov --- lib/eal/freebsd/eal.c | 6 ------ lib/eal/include/rte_vfio.h | 14 -------------- lib/eal/linux/eal_vfio.c | 7 ------- 3 files changed, 27 deletions(-) diff --git a/lib/eal/freebsd/eal.c b/lib/eal/freebsd/eal.c index 6c1d1e3751..bb05a969a9 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -850,12 +850,6 @@ int rte_vfio_is_enabled(__rte_unused const char *modname) return 0; } -RTE_EXPORT_INTERNAL_SYMBOL(rte_vfio_noiommu_is_enabled) -int rte_vfio_noiommu_is_enabled(void) -{ - return 0; -} - RTE_EXPORT_INTERNAL_SYMBOL(rte_vfio_get_group_num) int rte_vfio_get_group_num(__rte_unused const char *sysfs_base, diff --git a/lib/eal/include/rte_vfio.h b/lib/eal/include/rte_vfio.h index 0af41c3610..c4ba0e5cda 100644 --- a/lib/eal/include/rte_vfio.h +++ b/lib/eal/include/rte_vfio.h @@ -170,20 +170,6 @@ __rte_internal enum rte_vfio_mode rte_vfio_get_mode(void); -/** - * @internal - * Check if VFIO NOIOMMU mode is enabled. - * - * This function is only relevant on Linux in group mode. - * - * @return - * 1 if enabled. - * 0 if not enabled or not supported. - */ -__rte_internal -int -rte_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 660a28c90e..2092ccba53 100644 --- a/lib/eal/linux/eal_vfio.c +++ b/lib/eal/linux/eal_vfio.c @@ -1275,13 +1275,6 @@ container_dma_unmap(struct container *cfg, uint64_t vaddr, uint64_t iova, return ret; } -RTE_EXPORT_INTERNAL_SYMBOL(rte_vfio_noiommu_is_enabled) -int -rte_vfio_noiommu_is_enabled(void) -{ - return vfio_cfg.mode == RTE_VFIO_MODE_NOIOMMU; -} - RTE_EXPORT_INTERNAL_SYMBOL(rte_vfio_container_create) int rte_vfio_container_create(void) -- 2.52.0