From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v5 08/12] eal/pci: generalize args of PCI scan/match towards RTE device/driver Date: Tue, 03 Jan 2017 23:13:23 +0100 Message-ID: <32257536.1rHviD2EUb@xps13> References: <1482756644-13726-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-1-git-send-email-shreyansh.jain@nxp.com> <1482758645-23057-9-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-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id BC214377E for ; Tue, 3 Jan 2017 23:13:24 +0100 (CET) Received: by mail-wm0-f44.google.com with SMTP id a197so395219590wmd.0 for ; Tue, 03 Jan 2017 14:13:24 -0800 (PST) In-Reply-To: <1482758645-23057-9-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: > PCI scan and match now work on rte_device/rte_driver rather than PCI > specific objects. These functions can now be plugged to the generic > bus callbacks for scanning and matching devices/drivers. These sentences looks weird :) PCI functions must work with PCI objects, it's simpler. However I agree to register PCI scan, match, init and remove functions with the generic rte_bus. Then the rte_device object is casted into rte_pci_device inside these functions.