From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v5 07/12] pci: split match and probe function Date: Tue, 03 Jan 2017 23:08:09 +0100 Message-ID: <8436806.F4O5ETrAb8@xps13> References: <1482756644-13726-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-8-git-send-email-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: david.marchand@6wind.com, dev@dpdk.org To: Shreyansh Jain Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id E59E23777 for ; Tue, 3 Jan 2017 23:08:10 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id a197so395140473wmd.0 for ; Tue, 03 Jan 2017 14:08:10 -0800 (PST) In-Reply-To: <1482758645-23057-8-git-send-email-shreyansh.jain@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-12-26 18:54, Shreyansh Jain: > --- a/lib/librte_eal/common/include/rte_pci.h > +++ b/lib/librte_eal/common/include/rte_pci.h > @@ -373,6 +373,21 @@ rte_eal_compare_pci_addr(const struct rte_pci_addr *addr, > int rte_eal_pci_scan(void); > > /** > + * 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 > + * 0 for successful match > + * !0 for unsuccessful match > + */ > +int > +rte_eal_pci_match(struct rte_pci_driver *pci_drv, > + struct rte_pci_device *pci_dev); Yes we definitely need this function.