From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Iremonger, Bernard" Subject: Re: [PATCH v3 02/20] librte_ether: add fields from rte_pci_driver to rte_eth_dev_data Date: Tue, 20 Oct 2015 11:18:19 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C219F7260A@IRSMSX108.ger.corp.intel.com> References: <1444667120-12891-1-git-send-email-bernard.iremonger@intel.com> <1444667120-12891-3-git-send-email-bernard.iremonger@intel.com> <533710CFB86FA344BFBF2D6802E6028621B4E0C5@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: "Qiu, Michael" , "dev@dpdk.org" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 80C3B8E80 for ; Tue, 20 Oct 2015 13:18:22 +0200 (CEST) In-Reply-To: <533710CFB86FA344BFBF2D6802E6028621B4E0C5@SHSMSX101.ccr.corp.intel.com> Content-Language: en-US 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 Michael, > > @@ -1795,8 +1790,7 @@ rte_eth_dev_info_get(uint8_t port_id, struct > rte_eth_dev_info *dev_info) > > FUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get); > > (*dev->dev_ops->dev_infos_get)(dev, dev_info); > > dev_info->pci_dev =3D dev->pci_dev; >=20 > Here also pci_dev, I think after you remove pci_dev from vdevs, and this > field could be remove I think, as I don't see any use of this field in de= v_info, it > should be more general and not only PCI. >=20 > Thanks, > Michael At present there are PCI pdevs and vdevs without PCI. The field is still relevant for the pdevs, for the vdevs it will be NULL. I would prefer to retain this field. This patch set is not intended to handle other bus types. Regards, Bernard.