sure, thanks i will give it a try
Regards,
Prabhjot

----- Original Message -----
From:
 "Steven Luong (sluong)" <slu...@cisco.com>

To:
"Prabhjot Singh Sethi" <prabh...@techtrueup.com>, "Saxena Nitin"
<nitin.sax...@cavium.com>, "Guo Ruijing" <ruijing....@intel.com>,
"vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
Cc:

Sent:
Tue, 17 Oct 2017 15:10:27 +0000
Subject:
Re: [vpp-dev] vhost-user stable implementation?: VPP native or DPDK

        Prabhjot,

          

        To use the dpdk vhost-user, you have to specify each virtual
interface in the startup.conf file, something like this.

          

        dpdk {

          no-pci

          file-prefix virtio_user_

          vdev virtio_user0,path=/tmp/sock0,mac=52:54:00:00:04:01

        }

          

        You would see VirtioUser instead of VirtualEthernet in the show
interface output. VirtualEthernet is displayed if you are using vpp
native vhost-user.

        DBGvpp# sh int

        sh int

                      Name              
Idx       State          Counter         
Count     

        VirtioUser0/0/0                   1        
up
       

        local0                           
0        down      

        DBGvpp#

          

        The problem with using dpdk vhost-user is static binding. Every
virtual interface has to be specified in startup.conf prior to
bringing up VPP. If you add another interface in the startup.conf
file, you have to restart VPP.

        If you do want to try it out for fun, I remember I need to allocate
1G hugepages instead of 2M hugepages in order to get dpdk vhost-user
or dpdk virtio driver up. I don’t remember the former or the latter
really requires 1G hugepages. It took me a while to figure that part
out.

          

        Steven

           

        FROM: Prabhjot Singh Sethi <prabh...@techtrueup.com>
DATE: Tuesday, October 17, 2017 at 3:50 AM
TO: Saxena Nitin <nitin.sax...@cavium.com>, "Steven Luong (sluong)"
<slu...@cisco.com>, Guo Ruijing <ruijing....@intel.com>,
"vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
SUBJECT: Re: [vpp-dev] vhost-user stable implementation?: VPP native
or DPDK

          

        Hi Steven,

        we are also looking at using dpdk based virtualethernet interface, so
looking back at this thread i was wondering what is the problem with
dpdk based solution.

          

        1. you mentioned dpdk based interface can be created via vdev in dpdk
clause of startup file, can you share some example there. only thing i
have seen as an example so far is associating a bond interface with
physical slave interfaces, is it possible to create one for VM ?

        2. can you please share a link to the patch submitted for dpdk
virtio-user

 Regards,
 Prabhjot 

        FROM: Steven Luong (sluong) <slu...@cisco.com>
SENT: Monday, September 11, 2017 7:46 PM
TO: Guo, Ruijing; Saxena, Nitin; vpp-dev@lists.fd.io
SUBJECT: Re: [vpp-dev] vhost-user stable implementation?: VPP native
or DPDK

         

        If you create the VIrtualEthernet interface via the CLI or binary
API, it always uses VPP native. If you create the virtual interface
via vdev in the dpdk clause in the startup file, it uses dpdk’s
vhost-user.

         

        The problem is in DPDK virtio-user that they don’t comply with
virtio1.0 spec. I submitted a patch for them. I don’t think they
took it yet.

         

        Steven

         

        FROM: <vpp-dev-boun...@lists.fd.io> on behalf of "Guo, Ruijing"
<ruijing....@intel.com>
DATE: Sunday, September 10, 2017 at 5:36 PM
TO: "Saxena, Nitin" <nitin.sax...@cavium.com>, "vpp-dev@lists.fd.io"
<vpp-dev@lists.fd.io>
SUBJECT: Re: [vpp-dev] vhost-user stable implementation?: VPP native
or DPDK

         

         

        Just for your reference:

        I am using vpp 17.07. The default one is vpp native. But it cannot
work with virtio-user. So I change to vhost-user in dpdk.

         

         

        FROM: vpp-dev-boun...@lists.fd.io
[mailto:vpp-dev-boun...@lists.fd.io] ON BEHALF OF Saxena, Nitin
SENT: Monday, September 11, 2017 1:22 AM
TO: vpp-dev@lists.fd.io
SUBJECT: [vpp-dev] vhost-user stable implementation?: VPP native or
DPDK

         

        Hi All

         

        I went through following video regarding vhost-user.

         

        https://www.youtube.com/watch?v=z-ZRof2hDP0
 [1]

         

        The question is in this video it has been told by default VPP
implementation of vhost-user being used and not the dpdk one. Since
this video is 1 yr old and I am using vpp version 1704. Can
anyone please comment which vhost-user code is by default enabled in
vpp1704 - is it dpdk one or VPP native? I can see in
vpp-master/RELEASE.md that DPDK vhost was deprecated in vpp1609? Is it
fixed now?

         

        Thanks,

        Nitin



Links:
------
[1] https://www.youtube.com/watch?v=z-ZRof2hDP0

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to