From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=DlBnxV74RwiFVjikXcK7P8+K5aYUo4jOt/N+wj9sez8=; b=gd983Zli4CDZeT8yhHpK9RkoHLd6tlUsWy2XLd2EVTuEqc4YaEDdmkOd9Ql0KIF6Pi JsaFR1HEUbFbTiJjIF7Nwc/igyqLoQaQ6n2Ozb0T8+Xyl2nuerTF9OKUIAL+2iWY6v5n HDQ5//mm7Ig6mGXm5jitmug/dha+ABx6djCrEfIESYUfYxZgCMaLxtQ9tzMtkYIQDDGM 2R1K9vaLDk+fPWa3aRF/oxV8FAH9MNye80DOPO5DSTn0b5cbug6OpepTCWkKNL/TyKyK BUuZZjFqRSE8Lwe083jQyukoXylilc4ufKyZFIauMsE8gXcy9lAiye0dMy6dlNTRjNa2 oFzw== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=DlBnxV74RwiFVjikXcK7P8+K5aYUo4jOt/N+wj9sez8=; b=TNs0bYUAue5Eevk7hMB0LXkv8FoXIKjMfwSQMVF5eR4sHBvxWsHhA1l9TIUIjLTvdj DBuyDvO4j/aT7bqtZ8tW92AsP4Y7LrZBs/rJqPVYjJGYjfpV3KizoWOyv5IcvtfizWVC /XlTNJ8NDyigwLgI8lo4toWZOXoD2EeDlt88I/9Ay4ppAjDDxbZtMlPPLrXNuTFtAb+H pRLeaSQ42CEz20vcAMUWWbwbjj2OWoXXEZHQn6sWgsKgvd1vv1+AAPcNMZJ7kG3ntHYp 52Mh0wK6viuorRd7GNo9Mih0FlVUcB2KGtW8je9UkFsXXwl7RTNXC3VvnQ3fcxQC9hIF Tj+Q== X-Gm-Message-State: AIkVDXI8L27YdhxxcLo09drfxn7ZL85Z91WSRT0/3f6K0Zitdb8m4X3Vtjyzj6NE3hnktUmg X-Received: by 10.28.178.10 with SMTP id b10mr61629482wmf.83.1483481290656; Tue, 03 Jan 2017 14:08:10 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id w8sm91246434wmw.4.2017.01.03.14.08.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 14:08:10 -0800 (PST) From: Thomas Monjalon To: Shreyansh Jain Cc: david.marchand@6wind.com, dev@dpdk.org Date: Tue, 03 Jan 2017 23:08:09 +0100 Message-ID: <8436806.F4O5ETrAb8@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1482758645-23057-8-git-send-email-shreyansh.jain@nxp.com> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v5 07/12] pci: split match and probe 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: Tue, 03 Jan 2017 22:08:11 -0000 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.