From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pankaj Chauhan Subject: Re: vhost [query] : support for multiple ports and non VMDQ devices in vhost switch Date: Wed, 17 Aug 2016 15:54:21 +0530 Message-ID: <279ceed3-4645-b8ae-9809-dd10b9fd66b4@nxp.com> References: <20160816025614.GM30752@yliu-dev.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , "Tan, Jianfeng" To: , Return-path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0042.outbound.protection.outlook.com [104.47.32.42]) by dpdk.org (Postfix) with ESMTP id 7A7115963 for ; Wed, 17 Aug 2016 12:24:34 +0200 (CEST) In-Reply-To: <20160816025614.GM30752@yliu-dev.sh.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 8/16/2016 8:26 AM, Yuanhan Liu wrote: > 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. Yes I had a discussion with Jianfeng and he has sent the work items on the list. > >> 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 My use case is that my machine/board which is not sitting as end node of network but somewhere in between like an router. So the traffic looks something like this: Physical port 1 -> Enter VM(s) through virtio -> exit from physical port 2 For above use case i need a vhost-back-end which supports multiple physical ports. Thanks for the suggestion of vhost-pmd ( i was not aware of that), i'll explore possibility of using it for my use case of multiple physical ports. thanks, Pankaj >