From patchwork Thu Oct 26 10:06:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABtan_Rivet?= X-Patchwork-Id: 30959 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1BF431BB1D; Thu, 26 Oct 2017 12:07:08 +0200 (CEST) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 146CF1BABC for ; Thu, 26 Oct 2017 12:06:52 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id p75so6853116wmg.3 for ; Thu, 26 Oct 2017 03:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=q7b2KAMSe724mwkcZRTQdaI0y8S4pv/6Vwmqet0fNic=; b=IkeiFWn2MlnoeN0n0KchO7sQgXIRfUwE/AIwXRokeoomqWbxyih5OBB14sCtfkc59i itEK+4Hmd5pqS4fvFGlGTO9us0pLfIx2P7vIxe/wDjF4Ry4gi4HG0e86xc78eiE/xv0x 0IyzlvZWqDG1n2ZNaovQ5b0OWiuFoyaExrZ9jnHt8HAgHyu4Rw3Zzp4U7Yypin81Rhlq yoNR4gvCN6LfFcNBIMz5K7JxH7zfm7mmnNREGRlgz8FoPj79h2qt8CJsGVCr89RXjK1t bBCiODA0pMidAnEflL0c2utS5ESGLNucfFqpveEGjoukptBf35XRyXUBzW6wFJ/0ig/y yzSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=q7b2KAMSe724mwkcZRTQdaI0y8S4pv/6Vwmqet0fNic=; b=LMmVmvQX2Zt3kWvzDilDexh9H04eV8OSnktROzXwcz1JdbgXBmQVCVY8pkFUKeooLt 2a8VYVJ45wmTfjWK1isdHGysnN9j1Y4J/WurSJPLZs8oEmVB86bhYgz6HuZ/MBfbsUbU iXKC0a7ThmAxt7dy5QVdKf47NzhdIzXjCNvZ94w5x2c2CSK4R8OFfrt2TdvFj1a+hzvE r5Nr2cO36ExbsDCX5zVA8DJ8rH1I4CRDYmgCGEJuSV0tCKAuRhOrclKhEsRQ0uYFCsA7 H92JFU3OhgrhZTHFP7g/D3lVXYNMEBDHtHfBR4ahDGnny1z1GiUyQ+dmQOMulYSVVe8D Z7sQ== X-Gm-Message-State: AMCzsaUGjH0AXT/p19XWop6lFKhKsr270i8ebzVwBooPX6kcAsMKjdOt 2vXuPEAc1bjya2zZcXJJ5A05rTL8 X-Google-Smtp-Source: ABhQp+SA9Zvc6dUF7NVs+GcRcMjFSdR5TiOcbU6z0dDetWUGxx2Q9VWOotB48xUIj8y2C9www2NWSQ== X-Received: by 10.80.207.195 with SMTP id i3mr27628468edk.55.1509012411301; Thu, 26 Oct 2017 03:06:51 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id u12sm3339619edk.45.2017.10.26.03.06.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:06:50 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 26 Oct 2017 12:06:05 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v8 20/25] pci: do not expose IOVA mode getter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_private.h | 10 ++++++++++ lib/librte_eal/common/include/rte_pci.h | 10 ---------- lib/librte_eal/rte_eal_version.map | 1 - 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/librte_eal/common/eal_private.h b/lib/librte_eal/common/eal_private.h index ea1a5be..4eb1bd2 100644 --- a/lib/librte_eal/common/eal_private.h +++ b/lib/librte_eal/common/eal_private.h @@ -306,6 +306,16 @@ rte_pci_match(const struct rte_pci_driver *pci_drv, const struct rte_pci_device *pci_dev); /** + * Get iommu class of PCI devices on the bus. + * And return their preferred iova mapping mode. + * + * @return + * - enum rte_iova_mode. + */ +enum rte_iova_mode +rte_pci_get_iommu_class(void); + +/** * Init tail queues for non-EAL library structures. This is to allow * the rings, mempools, etc. lists to be shared among multiple processes * diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index de213cc..3c8cbd8 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -332,16 +332,6 @@ int rte_eal_compare_pci_addr(const struct rte_pci_addr *addr, int rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr); /** - * Get iommu class of PCI devices on the bus. - * And return their preferred iova mapping mode. - * - * @return - * - enum rte_iova_mode. - */ -enum rte_iova_mode -rte_pci_get_iommu_class(void); - -/** * Map the PCI device resources in user space virtual memory address * * Note that driver should not call this function when flag diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map index f2b4147..8d67b67 100644 --- a/lib/librte_eal/rte_eal_version.map +++ b/lib/librte_eal/rte_eal_version.map @@ -252,7 +252,6 @@ DPDK_17.11 { rte_pci_addr_cmp; rte_pci_addr_parse; rte_pci_device_name; - rte_pci_get_iommu_class; vfio_enable; vfio_is_enabled; vfio_noiommu_is_enabled;