From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: Re: [PATCH 6/7] eal: add struct rte_vdev_device Date: Thu, 16 Feb 2017 16:55:52 +0100 Message-ID: References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> <1487152929-23627-7-git-send-email-jblunck@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: dev , Shreyansh Jain To: Ferruh Yigit Return-path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 4AC5047CD for ; Thu, 16 Feb 2017 16:55:53 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id c85so3799239wmi.1 for ; Thu, 16 Feb 2017 07:55:53 -0800 (PST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Feb 15, 2017 at 6:11 PM, Ferruh Yigit wrote: > 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? > Why don't we add such a thing to the generic rte_device instead? While we are at it we might want to also add a driver private data field. Thoughts?