From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id CB5E9FB5C; Thu, 19 Jan 2017 09:14:13 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP; 19 Jan 2017 00:14:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,252,1477983600"; d="scan'208";a="1096100459" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga001.fm.intel.com with ESMTP; 19 Jan 2017 00:14:11 -0800 Date: Thu, 19 Jan 2017 16:16:25 +0800 From: Yuanhan Liu To: "Tan, Jianfeng" Cc: "Yigit, Ferruh" , "dev@dpdk.org" , "stable@dpdk.org" Message-ID: <20170119081625.GV9046@yliu-dev.sh.intel.com> References: <1484739849-72803-1-git-send-email-jianfeng.tan@intel.com> <8fea300e-350e-6b83-a706-acadec98afc8@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [dpdk-stable] [PATCH] net/virtio-user: fix missing driver name 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: Thu, 19 Jan 2017 08:14:14 -0000 On Thu, Jan 19, 2017 at 09:16:58AM +0800, Tan, Jianfeng wrote: > > >> On 1/18/2017 11:44 AM, Jianfeng Tan wrote: > > >>> API rte_eth_dev_info_get() fills driver name according to drv_name > > >>> of rte_eth_dev_data. But we have not fill such info in virtio_user. > > >>> > > >>> We do not use the same one with virtio device as some applications > > >>> might depend on driver name to differetiate kinds of devices, such > > >>> as VPP. > > >>> > > >>> Fixes: e9efa4d93821 ("net/virtio-user: add new virtual PCI driver") > > >>> CC: stable@dpdk.org > > >>> > > >>> Signed-off-by: Jianfeng Tan > > >>> --- > > >>> drivers/net/virtio/virtio_user_ethdev.c | 1 + > > >>> 1 file changed, 1 insertion(+) > > >>> > > >>> diff --git a/drivers/net/virtio/virtio_user_ethdev.c > > >> b/drivers/net/virtio/virtio_user_ethdev.c > > >>> index c877968..110f6a9 100644 > > >>> --- a/drivers/net/virtio/virtio_user_ethdev.c > > >>> +++ b/drivers/net/virtio/virtio_user_ethdev.c > > >>> @@ -312,6 +312,7 @@ virtio_user_eth_dev_alloc(const char *name) > > >>> hw->use_simple_rxtx = 0; > > >>> hw->virtio_user_dev = dev; > > >>> data->dev_private = hw; > > >>> + data->drv_name = "virtio_user PMD"; > > >> > > >> How driver naming done changed in next-net. > > >> Please check any other virtual driver in next-net for sample. > > > > > > Thank you for the info. And it seems that it's already fixed by that patch. > > > > That patch modified during merge, can you please confirm the latest > > version in the repo? > > Just checked latest master repo, this problem has been fixed by commit 73db5badb04 ("net: align ethdev and eal driver names"). Thanks to David Marchand. > > Yuanhan, do you think this patch can be applied to the stable repo? I think I would partially backport that commit to a stable release: just pick the virtio changes, with a brand new commit log, stating the issue need to be fixed and it's a partial backport from 73db5badb04 ("net: align ethdev and eal driver names"). Okay to you? --yliu