Xenial - OpenvSwitch with DPDK binding to 10G NIC, not working...

Martinx - ジェームズ thiagocmartinsc at gmail.com
Mon Mar 7 20:28:03 UTC 2016


On 7 March 2016 at 16:40, Martinx - ジェームズ <thiagocmartinsc at gmail.com> wrote:

> Hey guys,
>
>  I'm trying to create two OVS bridges powered by DPDK, on Xenial, but I'm
> facing problems...
>
>  First, there is no documentation about how to do this... So far, I found
> the following:
>
>
>  - This link doesn't how to bind real NIC:
>
> https://software.intel.com/en-us/articles/using-open-vswitch-with-dpdk-on-ubuntu
>
>  - This one isn't specific to Ubuntu OVS + DPDK packages:
>  https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md
>
>  - Similar with above but, very old... Also not related to Ubuntu packages:
>  https://feiskyer.github.io/2015/03/01/open-vswitch-over-dpdk-on-ubuntu/
>
>
>  So, to begin with, I start with Intel.com guide, it worked! But without
> real NIC.
>
>  Then, I tried to bind it to real NIC, like this:
>
>  Added two NIC PCI id to "/etc/dpdk/interfaces" file:
>
> ---
> pci     0000:01:00.0    uio-pci-generic
> pci     0000:01:00.1    uio-pci-generic
> ---
>
>  Then, reboot, I can see both NICs using "DPDK-compatible driver" by
> running: "dpdk_nic_bind --status".
>
>  Trying to create new OVS Bridges with DPDK devices, failing:
>
> ---
> root at xenial-1:~# ovs-vsctl add-br ovsbr0
> root at xenial-1:~# ovs-vsctl set bridge ovsbr0 datapath_type=netdev
> root at xenial-1:~# ovs-vsctl add-port ovsbr0 dpdk0 -- set Interface dpdk0
> type=dpdk
> ovs-vsctl: Error detected while setting up 'dpdk0'.  See ovs-vswitchd log
> for details.
> ---
>
> Log shows:
>
> ---
> 2016-03-07T19:34:07.532Z|00136|bridge|WARN|could not open network device
> dpdk0 (No such device)
> ---
>
> ---
> root at xenial-1:~# ovs-vsctl show
> 2b84f2f7-6d3f-4d51-94a5-fe6d04f0a062
>     Bridge "ovsbr0"
>         Port "ovsbr0"
>             Interface "ovsbr0"
>                 type: internal
>         Port "dpdk0"
>             Interface "dpdk0"
>                 type: dpdk
>                 error: "could not open network device dpdk0 (No such
> device)"
>     ovs_version: "2.5.0"
> ---
>
>  What am I missing?
>
>  I tried to use real NIC device name "em1", instead of "dpdk0", same
> results... Since "em1" does not even shows up on "ip link" list... DPDK
> toke it over...
>
> Thanks!
> Thiago
>

Guys,

I am also trying this:

 Added two NIC PCI id to "/etc/dpdk/interfaces" file:

---
pci     0000:01:00.0    vfio-pci
pci     0000:01:00.1    vfio-pci
---

According to: https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md
- but, it also doesn't work...

When using "vfio-pci", the NIC doesn't even show up as a DPDK-compatible
driver after running: "dpdk_nic_bind --status"...

So, how to use "vfio-pci" with Ubuntu DPDK?

Cheers!
Thiago
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20160307/3daec76f/attachment.html>


More information about the Ubuntu-devel-discuss mailing list