From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id DB5581B23D for ; Thu, 12 Oct 2017 12:46:25 +0200 (CEST) Received: by mail-wm0-f45.google.com with SMTP id k4so12134146wmc.1 for ; Thu, 12 Oct 2017 03:46:25 -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=WQhkesyF/uHZWhCHxWjua9tDpewXWO57hRlLNl3reDw=; b=fZMQ5O2oFOKC3mmntbfQZp+r7X1nLa5U4XNEK1luaMgkPVlQLwucto7IuIhF4n5TiV N6GGbtFp4Vhket4q3d6vjzraijIeGx2N7N9Msyy/75MRwY4YipPIoSfYy86IsnmDIKnh pDjwLVl+oDF7+K3wMEzL5ael4vEHXlST1dgNtRDNSpA2hGFSEgKibNKUSkMqrv+rxdx5 SvrIpogecA/51aGX1VcnyW9BbsZSbigAJbWymcSQJsSlgnpq9qObjYZTDFSgJmbwT7ah f9c4QbSgzDYRXBKeo3eonAy72lmRh5F/70BO6yK8bWcd2mfdxQSps2n6KzJqd3tbhTPZ D4mQ== 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=WQhkesyF/uHZWhCHxWjua9tDpewXWO57hRlLNl3reDw=; b=GqDQq0pKi50GI3cMyHs9E+UofhkO6IdNQsKYkfYp9BxCb2vD8KY/VbkeMui5XwFIh6 Mz7Qt1K0smHOoRSv0fsgffAd/pmMxjG2dsK72YV64cVZc3THX7Ako7aNAOj8roamnZOD 3MzrIiq6EStJzLzt6lSZXZNTKX/ip0tM+uJa3azrsyf2iHboGT2fORejm4xMSE82PzLv 5cdELVeARkVzlK7Jk/+Zk4vYBWgTb55m/niD1cq5juyBjhub2cikgP9tjrBeCXYL4dY7 PwRcow++xcan6camopBZWb+ka0fqOw1GB6O0ed/PzZ1X6/a9HoAnbxY9te/AVsGrSKCm KBRg== X-Gm-Message-State: AMCzsaX/cm4KpyU5KqwRjA9sv/59vdejMpU0cIxopALuBVPafwl+vfuu 2bpjitrRjtLyXNxfcd+xSo7sDsX8 X-Google-Smtp-Source: AOwi7QD6IPEUykJa34SfssG/Tt6UzvVd6JThKK2saHr3ZVtNLxl3U9hOJ4cemUqupRT2D0FNsWxMQQ== X-Received: by 10.28.28.201 with SMTP id c192mr1722074wmc.71.1507805184962; Thu, 12 Oct 2017 03:46:24 -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 z192sm16481146wmz.28.2017.10.12.03.46.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Oct 2017 03:46:23 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 12 Oct 2017 12:45:45 +0200 Message-Id: <11d452f841b11e646d6b905b5ff40173ee7584a3.1507804944.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v5 18/20] bus/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: , X-List-Received-Date: Thu, 12 Oct 2017 10:46:26 -0000 Signed-off-by: Gaetan Rivet --- drivers/bus/pci/private.h | 10 ++++++++++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 - lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/bus/pci/private.h b/drivers/bus/pci/private.h index b91217b..2283f09 100644 --- a/drivers/bus/pci/private.h +++ b/drivers/bus/pci/private.h @@ -235,4 +235,14 @@ int 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); + #endif /* _PCI_PRIVATE_H_ */ diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map index 1c18ca5..1d879a1 100644 --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map @@ -228,6 +228,5 @@ DPDK_17.11 { rte_eal_iova_mode; rte_eal_mbuf_default_mempool_ops; rte_lcore_has_role; - rte_pci_get_iommu_class; } DPDK_17.08; diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map index 827bcd4..1334433 100644 --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map @@ -232,6 +232,5 @@ DPDK_17.11 { rte_eal_iova_mode; rte_eal_mbuf_default_mempool_ops; rte_lcore_has_role; - rte_pci_get_iommu_class; } DPDK_17.08; -- 2.1.4