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 BA5F569C5 for ; Wed, 15 Feb 2017 18:11:42 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2017 09:11:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,166,1484035200"; d="scan'208";a="225689890" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.137]) ([10.237.220.137]) by fmsmga004.fm.intel.com with ESMTP; 15 Feb 2017 09:11:40 -0800 To: Jan Blunck , dev@dpdk.org References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487152929-23627-7-git-send-email-jblunck@infradead.org> Cc: shreyansh.jain@nxp.com From: Ferruh Yigit Message-ID: Date: Wed, 15 Feb 2017 17:11:40 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <1487152929-23627-7-git-send-email-jblunck@infradead.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH 6/7] eal: add struct rte_vdev_device X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2017 17:11:43 -0000 On 2/15/2017 10:02 AM, Jan Blunck wrote: > This adds the rte_vdev_device structure which embeds a generic rte_device. > > Signed-off-by: Jan Blunck <...> > > +struct rte_vdev_device { > + TAILQ_ENTRY(rte_vdev_device) next; /**< Next attached vdev */ > + struct rte_device device; /**< Inherit core device */ What do you think adding a name field here ? "dev->device.devargs->virt.drv_name" used a few times, since probing virtual devices done based on name. This is device name, and accessing it via "devargs->virt.drv_name" is not that clear. It is possible to create a name field here, set it during probe or init to point devargs field and use it wherever required, does it make sense? > +}; > + > /** Double linked list of virtual device drivers. */ > TAILQ_HEAD(vdev_driver_list, rte_vdev_driver); > >