From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] ci: Add the class_id support in pci probe Date: Tue, 24 May 2016 11:29:33 +0200 Message-ID: <3830854.ocOkRYbjrN@xps13> References: <1463660700-42992-1-git-send-email-ziye.yang@intel.com> <1463663877-52722-1-git-send-email-ziye.yang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ziye Yang Return-path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id D10B05699 for ; Tue, 24 May 2016 11:29:35 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id n129so119415959wmn.1 for ; Tue, 24 May 2016 02:29:35 -0700 (PDT) In-Reply-To: <1463663877-52722-1-git-send-email-ziye.yang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Ziye, Please check the title. It could be "pci: add class id". Please try to add a changelog below the 3 dashes when making a new revision. Other comments below: 2016-05-19 21:17, Ziye Yang: > --- a/lib/librte_eal/common/include/rte_pci.h > +++ b/lib/librte_eal/common/include/rte_pci.h > @@ -125,6 +125,7 @@ struct rte_pci_resource { > * table of these IDs for each device that it supports. > */ > struct rte_pci_id { > + uint32_t class_id; /**< Class ID (class, subclass, pi) or RTE_CLASS_ANY_ID. */ > uint16_t vendor_id; /**< Vendor ID or PCI_ANY_ID. */ > uint16_t device_id; /**< Device ID or PCI_ANY_ID. */ > uint16_t subsystem_vendor_id; /**< Subsystem vendor ID or PCI_ANY_ID. */ You moved class_id at the beginning (which looks good)... > @@ -177,14 +179,16 @@ struct rte_pci_device { > (vend), \ > (dev), \ > PCI_ANY_ID, \ > - PCI_ANY_ID > + PCI_ANY_ID, \ > + RTE_CLASS_ANY_ID > #else > /** Macro used to help building up tables of device IDs */ > #define RTE_PCI_DEVICE(vend, dev) \ > .vendor_id = (vend), \ > .device_id = (dev), \ > .subsystem_vendor_id = PCI_ANY_ID, \ > - .subsystem_device_id = PCI_ANY_ID > + .subsystem_device_id = PCI_ANY_ID, \ > + .class_id = RTE_CLASS_ANY_ID > #endif ... but forgot to move these lines.