From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 588591BA6D for ; Thu, 26 Oct 2017 00:39:33 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id l1so1456455wrc.3 for ; Wed, 25 Oct 2017 15:39:33 -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=He6lRZoTlFUhclkpNTzjoNk+GPsNCNZMy2KnjYjrpFQ=; b=AKx2reXEjhaN2SPxhy2Mlgodh1KBeM57vIb4ZR6eM3VgeJkOYrIHI+mU3Yfdb0QDVj 9Gkf3XVpwIUkCODWPImzFrbfpCysHtwFgHAuza0hu5YgWy/lIWerExUn1+Q0buU/rZ7S azIgXoDlXhxuL8ctXD5vPiA9rG4aoDQ8dfzRxW8FkCv7ZoVWq5oXvOuvs8pjd2AD35rQ hzgisCgfsRgreY6dJN/Yzap301SocvVT6Fu/t6dz+ThcPdNQTfNMSTzWa0azBHRNRair wS5iCPZsgXsHlK09r8DMtXTo27yKHrUJ6d+3/AJKMBPE6tkT5TPWJ0IxxbLKZxCLPoA6 qPAw== 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=He6lRZoTlFUhclkpNTzjoNk+GPsNCNZMy2KnjYjrpFQ=; b=XfjljOtkHUctPjXxa79GmbBzVBQY4ipI3ShjmZfgV43wLq4pH+J+yGo2LNTCnMB+qL +GzlpUhmuNG1cIhz4/LGHeVHDAMZwThCAJ4zbA3sNQWbmpYo5mMJ7E+DXonqv8fBki1D XoS/JujGtxfUiyTUet8LZ/ZKy7mk2QiwRuLFwbNFJaXOFInoW87EjgrjmhXAuTmEViwl gz5ZJERS7/kVpfPgoq0LzxHnMJxU2pb6KhgYTR8CgcFGjxrJIyc3piV5Jx/Mdhz2iM3N GTbjm4YqDWj8JlX+RfxQpJBkdqEKDpawNd4vslw5yjBTBPJA7P4RxrmkFTWGJ0ZwC+Nu i3EQ== X-Gm-Message-State: AMCzsaVmOEsDi0NlIHc3gDuvrF6xRL5ifg3qHoOn/uh4V4Em8ZFkE/2Z uuADFMeJ+2r2cyCzKSfXMi2Sjo6r X-Google-Smtp-Source: ABhQp+THNOdP6bA9sgDiylnpTDZenoE8sgWmSLy1s7B6jJZpGTZWe1a9XYooMsfLuUh3C4BYDb00Vw== X-Received: by 10.223.190.18 with SMTP id n18mr3533427wrh.44.1508971172381; Wed, 25 Oct 2017 15:39:32 -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 r63sm4466124wmg.13.2017.10.25.15.39.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Oct 2017 15:39:31 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 26 Oct 2017 00:38:41 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v7 19/25] pci: do not expose PCI match function 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: Wed, 25 Oct 2017 22:39:33 -0000 This function is private to the PCI bus. Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/eal_private.h | 15 +++++++++++++++ lib/librte_eal/common/include/rte_pci.h | 16 ---------------- lib/librte_eal/rte_eal_version.map | 1 - 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/lib/librte_eal/common/eal_private.h b/lib/librte_eal/common/eal_private.h index 8f949fb..ea1a5be 100644 --- a/lib/librte_eal/common/eal_private.h +++ b/lib/librte_eal/common/eal_private.h @@ -290,6 +290,21 @@ void pci_uio_free_resource(struct rte_pci_device *dev, int pci_uio_map_resource_by_index(struct rte_pci_device *dev, int res_idx, struct mapped_pci_resource *uio_res, int map_idx); +/* + * Match the PCI Driver and Device using the ID Table + * + * @param pci_drv + * PCI driver from which ID table would be extracted + * @param pci_dev + * PCI device to match against the driver + * @return + * 1 for successful match + * 0 for unsuccessful match + */ +int +rte_pci_match(const struct rte_pci_driver *pci_drv, + const struct rte_pci_device *pci_dev); + /** * 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 ca753b5..de213cc 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -331,22 +331,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); -/* - * Match the PCI Driver and Device using the ID Table - * - * @param pci_drv - * PCI driver from which ID table would be extracted - * @param pci_dev - * PCI device to match against the driver - * @return - * 1 for successful match - * 0 for unsuccessful match - */ -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. diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map index 754c6c3..f2b4147 100644 --- a/lib/librte_eal/rte_eal_version.map +++ b/lib/librte_eal/rte_eal_version.map @@ -253,7 +253,6 @@ DPDK_17.11 { rte_pci_addr_parse; rte_pci_device_name; rte_pci_get_iommu_class; - rte_pci_match; vfio_enable; vfio_is_enabled; vfio_noiommu_is_enabled; -- 2.1.4