From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Iremonger, Bernard" Subject: Re: [RFC PATCH 3/6] null: remove pci device driver Date: Mon, 31 Aug 2015 16:05:21 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C219F495E1@IRSMSX108.ger.corp.intel.com> References: <1440690041-32391-4-git-send-email-bernard.iremonger@intel.com> <60043761.M5sdKGtq51@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" To: Thomas Monjalon Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 1EFAF91DC for ; Mon, 31 Aug 2015 18:05:33 +0200 (CEST) In-Reply-To: <60043761.M5sdKGtq51@xps13> 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 Thomas, > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Monday, August 31, 2015 3:11 PM > To: Iremonger, Bernard > Cc: dev@dpdk.org; david.marchand@6wind.com > Subject: Re: [RFC PATCH 3/6] null: remove pci device driver >=20 > 2015-08-27 16:40, Bernard Iremonger: > > remove rte_null_pmd and pci_dev. > > > > Signed-off-by: Bernard Iremonger > [...] > > - eth_dev->pci_dev =3D pci_dev; > > - eth_dev->driver =3D &rte_null_pmd; > > + eth_dev->pci_dev =3D NULL; >=20 > Simple comment: > Why a driver should reset a PCI field if it does not care about PCI? Setting the pci_dev field to NULL, was needed in an earlier internal revisi= on of the patch set. This line is no longer needed and can be removed. The dev_type field of struct rte_eth_dev{} is now used instead in rte_ethd= ev.c. Regards, Bernard.