Hi Vivek,
you are right the dpdk4/5 would be adding more Host interfaces to the
bridge.
IMHO your steps 3&4 make wrong assumptions how this should work.

You want to create virtual interfaces on the Host that can be consumed by
your guest.
These days you use vhost_user sockets for that.

Create one in the Host with e.g. with:
ovs-vsctl add-port ovsdpdkbr0 vhost-user-1 -- set Interface vhost-user-1
type=dpdkvhostuser

You then need to configure your guest in a way to configure its vnic to
attach to that socket.
That can be done with qemu commandline or some assist by recent libvirt.

You might take a look at the examples here:
https://help.ubuntu.com/16.04/serverguide/DPDK.html#dpdk-openvswitch-guest
or more complete, but then also more complex
https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md#dpdk-vhost-user-vm-configuration



Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

On Wed, Apr 27, 2016 at 3:53 PM, Vivek Gupta <vive...@hcl.com> wrote:

> Hi All
>
> I am testing a scenario where I will receive the traffic on DPDK binded
> port on host machine and will forward that traffic to DPDK binded port of
> VM machine. For this I have done the followings-
>
>    1. Binded eth0 and eth1 of host machine to DPDK
>    2. Created the OVS bridge in host machine as below
>
> $OVS_DIR/utilities/ovs-vsctl  add-br ovsbr0 -- set Bridge ovsbr0
> datapath_type=netdev
> $OVS_DIR/utilities/ovs-vsctl  add-port ovsbr0 dpdk0 -- set Interface dpdk0
>   type=dpdk
> $OVS_DIR/utilities/ovs-vsctl  add-port ovsbr0 dpdk1 -- set Interface dpdk1
>   type=dpdk
>
> 3. Installed the VM and created virtual NIC(eth4, eth5)
> 4. Binded VM machine NIC to VM's DPDK
>
> Now I am not able to understand how to attach VM's NIC to OVS?
>
> To solve this I tried below command on HOST MACHINE
> $OVS_DIR/utilities/ovs-vsctl  add-port ovsbr0 dpdk4 -- set Interface dpdk4
>   type=dpdk
> $OVS_DIR/utilities/ovs-vsctl  add-port ovsbr0 dpdk5 -- set Interface dpdk5
>   type=dpdk
>
> but got error "Cannot get interface dpdk4". I believe this is due to OVS
> is looking in host machine for interface "dpdk4 & dpdk5" although these
> interface are available in VM machine.
>
> Do I need QEMU, if yes then how it will help.
>
> Please suggest.
>
> Thanks & Regards
> Vivek Gupta
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>
>
> ::DISCLAIMER::
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> E-mail transmission is not guaranteed to be secure or error-free as
> information could be intercepted, corrupted,
> lost, destroyed, arrive late or incomplete, or may contain viruses in
> transmission. The e mail and its contents
> (with or without referred errors) shall therefore not attach any liability
> on the originator or HCL or its affiliates.
> Views or opinions, if any, presented in this email are solely those of the
> author and may not necessarily reflect the
> views or opinions of HCL or its affiliates. Any form of reproduction,
> dissemination, copying, disclosure, modification,
> distribution and / or publication of this message without the prior
> written consent of authorized representative of
> HCL is strictly prohibited. If you have received this email in error
> please delete it and notify the sender immediately.
> Before opening any email and/or attachments, please check them for viruses
> and other defects.
>
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
> _______________________________________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to