From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v5 2/4] net/virtio: skip device probe in vdpa mode Date: Wed, 11 Apr 2018 19:58:37 +0100 Message-ID: <8f9872f2-3ae2-d999-92a7-1eb48366eb9f@intel.com> References: <20180404144042.29901-2-xiao.w.wang@intel.com> <20180405180701.16853-1-xiao.w.wang@intel.com> <20180405180701.16853-3-xiao.w.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: maxime.coquelin@redhat.com, dev@dpdk.org, zhihong.wang@intel.com, jianfeng.tan@intel.com, tiwei.bie@intel.com, cunming.liang@intel.com, dan.daly@intel.com, thomas@monjalon.net, gaetan.rivet@6wind.com, anatoly.burakov@intel.com, hemant.agrawal@nxp.com To: Xiao Wang Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 288A81BBA4 for ; Wed, 11 Apr 2018 20:58:42 +0200 (CEST) In-Reply-To: <20180405180701.16853-3-xiao.w.wang@intel.com> Content-Language: en-US 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 4/5/2018 7:06 PM, Xiao Wang wrote: > If we want a virtio device to work in vDPA (vhost data path acceleration) > mode, we could add a "vdpa=1" devarg for this device to specify the mode. > > This patch let virtio pmd skip device probe when detecting this parameter. > > Signed-off-by: Xiao Wang > Reviewed-by: Maxime Coquelin > --- > drivers/net/virtio/virtio_ethdev.c | 43 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c > index 2ef213d1a..afb096804 100644 > --- a/drivers/net/virtio/virtio_ethdev.c > +++ b/drivers/net/virtio/virtio_ethdev.c This devargs needs to be documented in virtio documentation.