[dpdk-dev] [RFC][PATCH V2 2/3] examples/vhost: Add vswitch command line options

2016-09-15 Thread Pankaj Chauhan
On 9/13/2016 5:44 PM, Yuanhan Liu wrote: > On Mon, Sep 05, 2016 at 04:24:30PM +0530, Pankaj Chauhan wrote: >> Add command line options for selecting switch implementation >> and maximum ports for the vswitch.following are two new command >> line options: >> >>

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-15 Thread Pankaj Chauhan
On 9/13/2016 12:21 PM, Tan, Jianfeng wrote: Hi Jianfeng, >>> >>> On 9/5/2016 6:54 PM, Pankaj Chauhan wrote: >>>> Introduce support for a generic framework for handling of switching >>>> between >>>> physical and vhost devices. The vswitc

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-12 Thread Pankaj Chauhan
On 9/11/2016 5:51 PM, Yuanhan Liu wrote: > On Mon, Sep 05, 2016 at 04:24:29PM +0530, Pankaj Chauhan wrote: >> Introduce support for a generic framework for handling of switching between >> physical and vhost devices. The vswitch framework introduces the following >> concept:

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-12 Thread Pankaj Chauhan
On 9/9/2016 2:26 PM, Tan, Jianfeng wrote: > Hi Pankaj, > > Thanks for the massive and great work. Hi Jianfeng, Thanks for the review. > > On 9/5/2016 6:54 PM, Pankaj Chauhan wrote: >> Introduce support for a generic framework for handling of switching >> between &g

[dpdk-dev] [RFC][PATCH V2 3/3] examples/vhost: Add VMDQ vswitch device

2016-09-05 Thread Pankaj Chauhan
support any switch implementation that conforms with vswitch framework. Please note that the core VMDQ logic remains as it is, as it was in vhost/main.c, this patch just moves it to different file and fits into ops provided by framework. Signed-off-by: Pankaj Chauhan --- examples/vhost/main.c

[dpdk-dev] [RFC][PATCH V2 2/3] examples/vhost: Add vswitch command line options

2016-09-05 Thread Pankaj Chauhan
-n 2 --socket-mem 1024 --huge-dir /hugetlbfs -- -p 0x1 --dev-basename sock1 --switch "vmdq" --max-ports 3 Signed-off-by: Pankaj Chauhan --- examples/vhost/main.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/examples/vhost/main.c b/exam

[dpdk-dev] [RFC][PATCH V2 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-05 Thread Pankaj Chauhan
gister with the framework. This framework makes vhost-switch application scalable in terms of: 1. Different switching logics (one of them is vmdq, vhost/vmdq.[c,h] 2. Number of ports. 3. Policies of selecting ports for rx and tx. Signed-off-by: Pankaj Chauhan --- examples/vhost/Makefile

[dpdk-dev] [RFC][PATCH V2 0/3] example/vhost: Introduce Vswitch Framework

2016-09-05 Thread Pankaj Chauhan
he comments from Maxime Coquelin. One comment is not yet taken care off, and it is listed in TODO list. Pankaj Chauhan (3): examples/vhost: Add vswitch (generic switch) framework examples/vhost: Add vswitch command line options examples/vhost: Add VMDQ vswitch device examples/vhost/Make

[dpdk-dev] [RFC][PATCH 2/3] examples/vhost: Add vswitch command line options

2016-09-03 Thread Pankaj Chauhan
On 9/2/2016 8:14 PM, Maxime Coquelin wrote: > > > On 08/27/2016 06:26 PM, Pankaj Chauhan wrote: >> Add command line options for selecting switch implementation >> and maximum ports for the vswitch.following are two new command >> line options: >> >> --s

[dpdk-dev] [RFC][PATCH 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-09-03 Thread Pankaj Chauhan
morrow. Now that i've your review and views, i will incorporte them and send the tested patchset soon. Thanks again for your time and effort for review. > > On 08/27/2016 06:26 PM, Pankaj Chauhan wrote: >> Indroduce support for a generic framework for handling of switching >> b

[dpdk-dev] [RFC][PATCH 3/3] examples/vhost: Add VMDQ vswitch device

2016-08-27 Thread Pankaj Chauhan
support any switch implementation that conforms with vswitch framework. Please note that the core VMDQ logic remains as it is, as it was in vhost/main.c, this patch just moves it to different file and fits into ops provided by framework. Signed-off-by: Pankaj Chauhan --- examples/vhost/Makefile

[dpdk-dev] [RFC][PATCH 2/3] examples/vhost: Add vswitch command line options

2016-08-27 Thread Pankaj Chauhan
-n 2 --socket-mem 1024 --huge-dir /hugetlbfs -- -p 0x1 --dev-basename sock1 --switch "vmdq" --max-ports 3 Signed-off-by: Pankaj Chauhan --- examples/vhost/main.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/examples/vhost/main.c b/exam

[dpdk-dev] [RFC][PATCH 1/3] examples/vhost: Add vswitch (generic switch) framework

2016-08-27 Thread Pankaj Chauhan
ing logics (one of them is vmdq, vhost/vmdq.[c,h] 2. Number of ports. 3. Policies of selecting ports for rx and tx. Signed-off-by: Pankaj Chauhan --- examples/vhost/Makefile | 2 +- examples/vhost/vswitch_common.c | 467 examples/vhost/vswitch_commo

[dpdk-dev] [RFC][PATCH 0/3] example/vhost: Introduce Vswitch Framework

2016-08-27 Thread Pankaj Chauhan
on) to register all the switch implmentations in vhost-switch and then select the required implementation using command line option 'switch'. Pankaj Chauhan (3): examples/vhost: Add vswitch (generic switch) framework examples/vhost: Add vwitch command line options examples/vhost: Add VMDQ v

[dpdk-dev] vhost [query] : support for multiple ports and non VMDQ devices in vhost switch

2016-08-26 Thread Pankaj Chauhan
On 8/24/2016 12:58 PM, Maxime Coquelin wrote: > > > On 08/18/2016 04:35 AM, Tan, Jianfeng wrote: >> Hi Maxime, >> >> On 8/17/2016 7:18 PM, Maxime Coquelin wrote: >>> Hi Jianfeng, >>> >>> On 08/17/2016 04:33 AM, Tan, Jianfeng wrote: Hi, Please review below proposal of Pankaj and

[dpdk-dev] vhost [query] : support for multiple ports and non VMDQ devices in vhost switch

2016-08-17 Thread Pankaj Chauhan
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

[dpdk-dev] Running DPDK in a VM

2016-08-10 Thread Pankaj Chauhan
On 8/4/2016 3:51 PM, Vaibhav Sood wrote: Hi, > Hi! > > I am looking at running DPDK in a VM, I would like to know if there are any > limitations when doing this in terms of any DPDK features that do not work in > a VM > We do run DPDK in VM, and we have not come across any major limitations.

[dpdk-dev] vhost [query] : support for multiple ports and non VMDQ devices in vhost switch

2016-08-09 Thread Pankaj Chauhan
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