From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id B03BF1BAB4 for ; Thu, 26 Oct 2017 12:06:50 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id t139so7139748wmt.1 for ; Thu, 26 Oct 2017 03:06:50 -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=EVhNxMzvs9uMQHlwUQ9/5EfCQ85WRdFX40YLQ0PmNkyy27B8vRCF5hW2JX6/0O5C2f UJjFwDgP19p3aHMMDP/MXdkq4Od2dTwESWsQG1YXHEZpmVJ87/KUuhC/Tu+clVU+VRa8 /w6KzG50GyiJQi6+obwmy09Vn6NQqKtvihpbfdidfJMDfS3HHJscIDFuLMOB4qPW6hAQ /gf3aWjpUgTu7DavE9tA1A7FFgf4PtEZH/etOF0elFcKy3APB0xeykVfvfOcERoeNSuj futCNDbyIwlhZYjuMyN9bnS8yGzodbXriMbl0Z6NP342jVag/rH6hPLx9CLfMiqbGVdj YO+Q== 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=AUvoENdEnShY/lZYOLkxHIbjJvnRW1DLVDHJeFoj1iX1gJigBX/DtJAF/KLN2T9x+X ZubeDrTw/fGlqQ1FSkyb4hdkUeOE6fKllCVkQpdt+jErQsSOui1RkoucdQVmqiNbwRxO zpdWKZN/bJhU3LZQE0e+aas8DgQy0LnV0Mg9wS2oWZqw03l31P4wXkUI95RCE/4i9jpd UdO0pAP8AABwHkoNBkJ7y3tpbzQUPmvDwk07k9r6DZ5beIUdr9uAO1pwpgRvbqMk8JJo bn/M1PZoOHBlcyq3P/siSNTHcw+smIZCOz9HwnbNrLIPPreZhJzsnWy9evs5G2So4MJf AIXw== X-Gm-Message-State: AMCzsaVpXKjVCMCsice7fLWdSRmeWKiZXk9MkfroMr1S70O65xiW2AnQ IMcvgtHmH2tx3zgjLqkkMgD0yfrc X-Google-Smtp-Source: ABhQp+Sz65NPUOcoaBUiAiGsKTmPDRVYLv1mxY5H4sVuE3p+zzyac3HIuI1uZvJlECCDHIFg5n/vEQ== X-Received: by 10.80.147.83 with SMTP id n19mr7874619eda.36.1509012410014; Thu, 26 Oct 2017 03:06:50 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:06:49 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 26 Oct 2017 12:06:04 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v8 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: Thu, 26 Oct 2017 10:06:51 -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