From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [RFC PATCH 3/6] null: remove pci device driver Date: Mon, 31 Aug 2015 16:11:07 +0200 Message-ID: <60043761.M5sdKGtq51@xps13> References: <1440690041-32391-4-git-send-email-bernard.iremonger@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bernard Iremonger Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id E268A91C8 for ; Mon, 31 Aug 2015 16:12:17 +0200 (CEST) Received: by wiclp12 with SMTP id lp12so866896wic.1 for ; Mon, 31 Aug 2015 07:12:17 -0700 (PDT) In-Reply-To: <1440690041-32391-4-git-send-email-bernard.iremonger@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" 2015-08-27 16:40, Bernard Iremonger: > remove rte_null_pmd and pci_dev. > > Signed-off-by: Bernard Iremonger [...] > - eth_dev->pci_dev = pci_dev; > - eth_dev->driver = &rte_null_pmd; > + eth_dev->pci_dev = NULL; Simple comment: Why a driver should reset a PCI field if it does not care about PCI?