From patchwork Thu Oct 12 10:45:44 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: 30242 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 C1ED81B2A6; Thu, 12 Oct 2017 12:46:43 +0200 (CEST) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id 55EE21B23A for ; Thu, 12 Oct 2017 12:46:24 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id q132so12123704wmd.2 for ; Thu, 12 Oct 2017 03:46:24 -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=qbxeOOXPxt1h87y7DbI8YJDY1S/y95ZY8HfyGpdt6es=; b=R1RJR6LTbePcoJb557fOUsQ6cavmzeFdhaHOqq1Z/sq00k+yEYT/YHHeS69XjOhsB1 6udeaQIiqZWrdT0WMCdC4OR8xVjsZvfwn6GO69VL6Fgsps2847AMKdCx2TgsLioaTqWH GsKE6ecmiTW3tj0Q7vHTjqfWwO7lpLYYwKcVa421Ld+I4PnyCkldqp/NCH6xDiNRwBdr IKhCKUrax2PTE7BU+i98+vaKaWW3pZPR8MvvqAQiMK1/hwzRfMkookN96JB0X3mYvkIA vTMkbbx4v9vTQip2mftWfg+LL9JT0bpjBoqZXv7IYFIksDGldlpGzNcwvS8Dr945WA91 tDHQ== 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=qbxeOOXPxt1h87y7DbI8YJDY1S/y95ZY8HfyGpdt6es=; b=e2Y97qArAniggYM0TmHHmPXQM/JRTCWOliDwPB6GY+n7+8MDkSmKk+/04agzAXhAAH cbBn0xCG06Rf4iP8h9SPNe7IQVKEr4PaVOOfKNgcZva6B95gzcdkUnwEUxBhAapbmAT3 tu++LRrv/nP7YnfIvjh+YGkuvDJQBJBD+SsAOCOrhqH2/GjJKhzDbhZPXgzGcSQkJEIC s+1yqG/EgmoZsp1RPiydvsSZ5djNqo4hiQbHvAEcJOIG960VVk8pba2BsnZCEHzcEkbP fVJdRUx2WOmXqnEwumugFkbqCedf/RmxeMru8ZyYa+VJ5kQVeA7W1TaRPXFqg3niJqmG HB0w== X-Gm-Message-State: AMCzsaUpdpqToXVgorDBT3WJB8dy5rLCAWvlQCqB+VT1ybHhH9H7cxAF lQ4dAiKBxIYIT1MzgdKrpajks6mp X-Google-Smtp-Source: AOwi7QCWihLQfCT5lqfUMpg3wmOR8AnAit/zL/h1/7/a+8zuMICrIkZRXf1B2FJGpCbrJ3r4IlL7bA== X-Received: by 10.28.29.68 with SMTP id d65mr1604908wmd.93.1507805183607; Thu, 12 Oct 2017 03:46:23 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 12 Oct 2017 03:46:22 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 12 Oct 2017 12:45:44 +0200 Message-Id: <56eef3f6a2f72057c8e932314d39d06f247b5ba1.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 17/20] bus/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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This function is private to the PCI bus. Signed-off-by: Gaetan Rivet --- drivers/bus/pci/include/rte_bus_pci.h | 16 ---------------- drivers/bus/pci/private.h | 15 +++++++++++++++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 - lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 - 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/drivers/bus/pci/include/rte_bus_pci.h b/drivers/bus/pci/include/rte_bus_pci.h index d188353..f0a3b37 100644 --- a/drivers/bus/pci/include/rte_bus_pci.h +++ b/drivers/bus/pci/include/rte_bus_pci.h @@ -170,22 +170,6 @@ struct rte_pci_bus { /** Device driver supports IOVA as VA */ #define RTE_PCI_DRV_IOVA_AS_VA 0X0040 -/* - * 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/drivers/bus/pci/private.h b/drivers/bus/pci/private.h index 455c81d..b91217b 100644 --- a/drivers/bus/pci/private.h +++ b/drivers/bus/pci/private.h @@ -220,4 +220,19 @@ 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); + #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 97b3918..1c18ca5 100644 --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map @@ -229,6 +229,5 @@ DPDK_17.11 { rte_eal_mbuf_default_mempool_ops; rte_lcore_has_role; rte_pci_get_iommu_class; - rte_pci_match; } 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 a8ea4ea..827bcd4 100644 --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map @@ -233,6 +233,5 @@ DPDK_17.11 { rte_eal_mbuf_default_mempool_ops; rte_lcore_has_role; rte_pci_get_iommu_class; - rte_pci_match; } DPDK_17.08;