From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v7 02/28] librte_ether: add fields from rte_pci_driver to rte_eth_dev_data Date: Mon, 02 Nov 2015 17:32:06 +0100 Message-ID: <22264893.CRHp7yC71q@xps13> References: <1446217733-9887-3-git-send-email-bernard.iremonger@intel.com> <1583512.Ss2AELHNGg@xps13> <8CEF83825BEC744B83065625E567D7C219F76F86@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Iremonger, Bernard" Return-path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id 368CF8D9F for ; Mon, 2 Nov 2015 17:33:17 +0100 (CET) Received: by wicll6 with SMTP id ll6so53613740wic.1 for ; Mon, 02 Nov 2015 08:33:17 -0800 (PST) In-Reply-To: <8CEF83825BEC744B83065625E567D7C219F76F86@IRSMSX108.ger.corp.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-11-02 10:36, Iremonger, Bernard: > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > 2015-10-30 15:08, Bernard Iremonger: > > > add dev_flags to rte_eth_dev_data, add macros for dev_flags. > > > add kdrv to rte_eth_dev_data. > > > add numa_node to rte_eth_dev_data. > > > add drv_name to rte_eth_dev_data. > > > > A commit message should explain why things are done. > > > > > + uint32_t dev_flags; /**< Flags controlling handling of device. */ > > > > Where are defined this flags? What is the scope? > > These flags are defined in the following file: > > lib/librte_ether/rte_ethdev.h > > These flags are visible to all the vdevs and pdevs. I mean it should be more explicit. Having an enum name will help. Note: I understand your patch. I'm just asking the questions an user will ask when trying to use your new API. Thanks