From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 866FD48B68; Fri, 21 Nov 2025 11:11:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 507FB406BA; Fri, 21 Nov 2025 11:09:40 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id 1B8F24066A for ; Fri, 21 Nov 2025 11:09:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763719777; x=1795255777; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=N96IKIHfIlFj0WZ6cvHrPNf2+phtF8pbjYPDFrr9cZY=; b=g04V3iDTkLZr0U55z8LvA2I2T8kp+1CbHPuEbHDN3GAREG+hL7MLBTwi 3xYcAZhhZ9A0l7nrCfZ3l6THVznDB+r89GFi0p01nnoz4UbU58tvP4Qga FGih3+unsJcExkY9FJ8FY6EcI4FnbZQI9fx0QiW282x9k8GZeKBiOmBjV KX83aJ8TiFct042pzRczDYq0ZmIaSQne62LbfJKYGopnXZZ0N0vxPN15U EwI6DrzY+x4QTzsreTT0xkss8XJf/rt4UTcHozBh6UOpAekaXlxeusNKM GLJWA/bZq2RF/hFylmLivqh0Lt0j/shgQXefGssonJGxmqeQ5o0IJ1Bx8 Q==; X-CSE-ConnectionGUID: 2p08oIpvT+S9B8clgMR2rA== X-CSE-MsgGUID: Gm4zqDkNQsG4SGR7A6btsA== X-IronPort-AV: E=McAfee;i="6800,10657,11619"; a="76491054" X-IronPort-AV: E=Sophos;i="6.20,215,1758610800"; d="scan'208";a="76491054" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2025 02:09:36 -0800 X-CSE-ConnectionGUID: YUPjTOyCT8mtNCkyoGl5/Q== X-CSE-MsgGUID: xXGuhqjIQFmETHv8dQoWYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,215,1758610800"; d="scan'208";a="196121597" Received: from silpixa00401119.ir.intel.com ([10.20.224.206]) by orviesa004.jf.intel.com with ESMTP; 21 Nov 2025 02:09:36 -0800 From: Anatoly Burakov To: dev@dpdk.org, Bruce Richardson Subject: [PATCH v6 17/18] vfio: remove no-IOMMU check API Date: Fri, 21 Nov 2025 10:09:02 +0000 Message-ID: <5ddb6a84e1880ac79bc904ee200d0b21fcbd62b4.1763719707.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.47.3 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 7b3ce875a8..d850ef2c4f 100644 --- a/lib/eal/freebsd/eal.c +++ b/lib/eal/freebsd/eal.c @@ -842,12 +842,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 8545552308..2e9ad7dbb4 100644 --- a/lib/eal/linux/eal_vfio.c +++ b/lib/eal/linux/eal_vfio.c @@ -1310,13 +1310,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.47.3