[ovs-dev] Fwd: [Dpdk-ovs] dpdk ovs inter VM communication

Flavio Leitner fbl at sysclose.org
Fri Sep 4 17:11:45 UTC 2015


> > -----Original Message-----
> > From: Dpdk-ovs [mailto:dpdk-ovs-bounces at lists.01.org] On Behalf Of
> > Gayathri
> > Sent: Wednesday, September 2, 2015 6:13 PM
> > To: dpdk-ovs at lists.01.org
> > Subject: [Dpdk-ovs] dpdk ovs inter VM communication
> >
> > Hi *,
> >
> > I have dpdk 2.0 and ovs 2.4 working for a single VM. I would like to
> create
> > couple of them and have INTER-VM communication tested. But not sure
> > what is the configuration requirement to accomplish this.  Please help me
> > out.
> >
> > Few questions regarding the ports shown in the below o/p:
> > MYBOX:~/OVS$ sudo ovs-vsctl show
> > 39834e02-bf59-4219-8200-b91297015e92
> >     Bridge "br1"
> >         Port "dpdkvhost1"
> >             Interface "dpdkvhost1"
> >                 type: dpdkvhostuser
> >         Port "dpdk1"
> >             Interface "dpdk1"
> >                 type: dpdk
> >         Port "br1"
> >             Interface "br1"
> >                 type: internal
> >     Bridge "br0"
> >         Port "dpdk0"
> >             Interface "dpdk0"
> >                 type: dpdk
> >         Port "br0"
> >             Interface "br0"
> >                 type: internal
> >         Port "dpdkvhost0"
> >             Interface "dpdkvhost0"
> >                 type: dpdkvhostuser
> >
> > 1) What are these ports dpdk0/1 ?  Are they outgoing ports connected to
> the
> > physical nics


Yes, "dpdk" plus a number is a physical interface.

> > 2) Also dpdkvhost0/1 are they ports connecting the VM interface?


Those are DPDK vhost-user ports. Those ports use shared mem with a
notification mechanism to exchange packets with qemu.  However, you
need to configure qemu/VM to actually use them. 
Something like:
    <interface type='vhostuser'>
      <mac address='52:54:00:24:1b:c4'/>
      <source type='unix' path='/var/run/openvswitch/vhost0' mode='client'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>

 

> > 3) How do we detect the port num of Rxring/Txring of the vhost port?

Sorry, I didn't understand.

fbl




More information about the dev mailing list