From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 36BB55A79 for ; Tue, 16 Aug 2016 04:47:46 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 15 Aug 2016 19:47:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,528,1464678000"; d="scan'208";a="866017764" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga003.jf.intel.com with ESMTP; 15 Aug 2016 19:47:42 -0700 Date: Tue, 16 Aug 2016 10:56:14 +0800 From: Yuanhan Liu To: Pankaj Chauhan Cc: dev@dpdk.org, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com, "Tan, Jianfeng" Message-ID: <20160816025614.GM30752@yliu-dev.sh.intel.com> References: 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] vhost [query] : support for multiple ports and non VMDQ devices in vhost switch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2016 02:47:46 -0000 On Tue, Aug 09, 2016 at 04:42:33PM +0530, Pankaj Chauhan wrote: > > Hi, > > I am working on an NXP platform where we intend to use user space vhost > switch (examples/vhost) as backend for VIRTIO devices. But there are two > limitations in current vhost-switch (examples/vhost)that are restricting my > use case: > > 1. The vhost-switch application is tightly integrated with Intel VMDQ. Since > my device doesn't have VMDQ i can not use this application directly. Sorry being late (I was on biz trip last week). Yes, a vhost example should not do that. We have an internal TODO to remove it. Actually, to make it optional, and Jianfeng was working on that. Well, seems that you two have already had some discussions. > 2. The vhost-switch application supports only one external or physical port > (non virtio devices), but my requirement is to have multiple physical ports > and multiple virtio devices. What are you going to achieve? BTW, have you tried testpmd (with vhost-pmd)? I'm with impression that it might be a better option to you. --yliu > In summary my requirement is to do whatever vhost-switch is doing, in > addition to that add support for following: > > 1. support devices that don't have VMDQ. > 2. Support multiple physical ports. > > I need suggestions on the approach i should take: whether to add support of > above mentioned in existing vhost-switch (examples/vhost) or write another > application (based on librte_vhost only) to support my requirements. > > I'll work on it after the suggestion i get from the list, and send the RFC > patch. > > Thanks, > Pankaj >