From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 31 Aug 2015 09:05:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,442,1437462000"; d="scan'208";a="635539992" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by orsmga003.jf.intel.com with ESMTP; 31 Aug 2015 09:05:23 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.12]) by irsmsx105.ger.corp.intel.com ([169.254.7.51]) with mapi id 14.03.0224.002; Mon, 31 Aug 2015 17:05:21 +0100 From: "Iremonger, Bernard" To: Thomas Monjalon Thread-Topic: [RFC PATCH 3/6] null: remove pci device driver Thread-Index: AQHQ4/cdj3QGdZhl60CVcaMcxAAyWZ4mQ5Kg 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> In-Reply-To: <60043761.M5sdKGtq51@xps13> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [RFC PATCH 3/6] null: remove pci device driver X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Aug 2015 16:05:34 -0000 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.