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

2016-03-07 Thread Christian Ehrhardt
Hi Thiago,
comments inline below ...

Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

From: Martinx - ジェームズ 
Date: Mon, Mar 7, 2016 at 2:28 PM
Subject: Re: Xenial - OpenvSwitch with DPDK binding to 10G NIC, not
working...
To: Ubuntu Core developers 


On 7 March 2016 at 16:40, Martinx - ジェームズ  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/
>
>
Yeah docs are often outdated, I have realized that as well.
Not because people are lazy, but because the environment is changing so
fast.
It is already planned to do a blog post or wiki or such along 16.04 release
to guide users of the very updated dpdk / openvsiwtch-dpdk.
But for now we are working on so many issues that things are changing too
fast to pre-write that document.

To add a bit I also found this one useful:
http://www.ran-lifshitz.com/2015/08/28/open-vswitch-netdev-dpdk-with-vhost-user-support-update/
But be aware of
https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1546565
if you want to pass it to guests.
At least there the log entries will be pretty obvious with "permission
denied" on the vhost-user sockets.



>  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 :01:00.0uio-pci-generic
> pci :01:00.1uio-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@xenial-1:~# ovs-vsctl add-br ovsbr0
> root@xenial-1:~# ovs-vsctl set bridge ovsbr0 datapath_type=netdev
> root@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.
>
[...]

> 2016-03-07T19:34:07.532Z|00136|bridge|WARN|could not open network device
> dpdk0 (No such device)
>
[...]

> Port "dpdk0"
> Interface "dpdk0"
> type: dpdk
> error: "could not open network device dpdk0 (No such
> device)"
>

I had seen something similar.
The particular one you are describing here was for me a device that was
either no bound by dpdk or had no compatible driver.
But according to what I see both should be ok for you.

Often I realized that the vswitch log alone isn't too helpful.
I recommend using journalctl along to get the EAL messages of dpdk as well.

To help you I created a merged log (time goes top down) which has both logs
and the command I used for a successful ovs-dpdk port add.
I think that will help you to see where your systems behaviour starts to
differ.

=> http://paste.ubuntu.com/15326358/

In your case you might e.g. see "skipped device" there leading eventually
to your dpdk0 not found issue.

Also you might already have done that, but just not mentioned. Still to
help as much as possible - have you set DPDK_OPTS, I for example did that
before (re)starting it?
For example
echo "set DPDK_OPTS='--dpdk -c 0x1 -n 4 -m 4096'" >>
/etc/default/openvswitch-switch


[...]

I have also seen the part about vfio-pci in your mail and thank you for
reporting the bug, I'll handle work and communication of this issue in the
bug.
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Still possible to update FreeType to 2.6.3 for Xenial?

2016-03-07 Thread Nikolaus Waxweiler

Hey list,
FT was recently updated to 2.6.1 and that's a good thing. There are 
more fuzzing fixes in 2.6.2 though, possibly fixes for security problems 
that may never get a CVE number.


https://bugs.launchpad.net/ubuntu/+source/freetype/+bug/1521299

So, is it still possible to bring 2.6.3 into Xenial? The Debian package 
was recently updated.


Best regards,
Nikolaus :)

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


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

2016-03-07 Thread Martinx - ジェームズ
On 7 March 2016 at 22:07, Martinx - ジェームズ  wrote:

> On 7 March 2016 at 21:45, Martinx - ジェームズ 
> wrote:
>
>> On 7 March 2016 at 20:16, Martinx - ジェームズ 
>> wrote:
>>
>>> On 7 March 2016 at 17:28, Martinx - ジェームズ 
>>> wrote:
>>>
 On 7 March 2016 at 16:40, Martinx - ジェームズ 
 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 :01:00.0uio-pci-generic
> pci :01:00.1uio-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@xenial-1:~# ovs-vsctl add-br ovsbr0
> root@xenial-1:~# ovs-vsctl set bridge ovsbr0 datapath_type=netdev
> root@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@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 :01:00.0vfio-pci
 pci :01:00.1vfio-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

>>>
>>> After reading INSTALL.DPDK.md again, I realized that it only works with
>>> VFIO or IGB (UIO), Ubuntu DPDK package does not provides the "igb_uio"
>>> module, neither via DKMS. So, the only option is VFIO, right?
>>>
>>> And, I am unable to use "vfio-pci" configured inside of
>>> "/etc/dpdk/interfaces" but, I managed to make it work manually.
>>>
>>> I just filled a bug report against DPDK Ubuntu package related to this
>>> "vfio-pci" problem:
>>>
>>> ---
>>> Usege of vfio-pci module via /etc/dpdk/interfaces doesn't work:
>>> https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1554214
>>> ---
>>>
>>> So, after workaround the bug #1554214 (bug description have the
>>> instructions), I tried OpenvSwitch with DPDK + 10G NIC, again, still no
>>> success.
>>>
>>> Same problem...
>>>
>>> * DPDK using VFIO:
>>>
>>> ---
>>> root@xenial-1:~# dpdk_nic_bind --status
>>>
>>> Network devices using DPDK-compatible driver
>>> 
>>> :01:00.0 'NetXtreme II BCM57800 1/10 Gigabit Ethernet' drv=vfio-pci
>>> unused=bnx2x
>>> :01:00.1 'NetXtreme II BCM57800 1/10 Gigabit Ethernet' drv=vfio-pci
>>> unused=bnx2x
>>> ---
>>>
>>> * OpenvSwitch with DPDK still failing:
>>>
>>> ---
>>> service openvswitch-switch stop
>>> service openvswitch-switch start
>>>
>>> ps xfa | grep dpdk  # I can see "ovs-vswit... --dpdk -c 0x3 -n 4 --
>>> " running...
>>>
>>>
>>> root@xenial-1:~# ovs-vsctl add-br br0 -- set bridge br0
>>> datapath_type=netdev
>>> root@xenial-1:~# ovs-vsctl add-port br0 dpdk0 -- 

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

2016-03-07 Thread Martinx - ジェームズ
On 7 March 2016 at 21:45, Martinx - ジェームズ  wrote:

> On 7 March 2016 at 20:16, Martinx - ジェームズ 
> wrote:
>
>> On 7 March 2016 at 17:28, Martinx - ジェームズ 
>> wrote:
>>
>>> On 7 March 2016 at 16:40, Martinx - ジェームズ 
>>> 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 :01:00.0uio-pci-generic
 pci :01:00.1uio-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@xenial-1:~# ovs-vsctl add-br ovsbr0
 root@xenial-1:~# ovs-vsctl set bridge ovsbr0 datapath_type=netdev
 root@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@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 :01:00.0vfio-pci
>>> pci :01:00.1vfio-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
>>>
>>
>> After reading INSTALL.DPDK.md again, I realized that it only works with
>> VFIO or IGB (UIO), Ubuntu DPDK package does not provides the "igb_uio"
>> module, neither via DKMS. So, the only option is VFIO, right?
>>
>> And, I am unable to use "vfio-pci" configured inside of
>> "/etc/dpdk/interfaces" but, I managed to make it work manually.
>>
>> I just filled a bug report against DPDK Ubuntu package related to this
>> "vfio-pci" problem:
>>
>> ---
>> Usege of vfio-pci module via /etc/dpdk/interfaces doesn't work:
>> https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1554214
>> ---
>>
>> So, after workaround the bug #1554214 (bug description have the
>> instructions), I tried OpenvSwitch with DPDK + 10G NIC, again, still no
>> success.
>>
>> Same problem...
>>
>> * DPDK using VFIO:
>>
>> ---
>> root@xenial-1:~# dpdk_nic_bind --status
>>
>> Network devices using DPDK-compatible driver
>> 
>> :01:00.0 'NetXtreme II BCM57800 1/10 Gigabit Ethernet' drv=vfio-pci
>> unused=bnx2x
>> :01:00.1 'NetXtreme II BCM57800 1/10 Gigabit Ethernet' drv=vfio-pci
>> unused=bnx2x
>> ---
>>
>> * OpenvSwitch with DPDK still failing:
>>
>> ---
>> service openvswitch-switch stop
>> service openvswitch-switch start
>>
>> ps xfa | grep dpdk  # I can see "ovs-vswit... --dpdk -c 0x3 -n 4 -- "
>> running...
>>
>>
>> root@xenial-1:~# ovs-vsctl add-br br0 -- set bridge br0
>> datapath_type=netdev
>> root@xenial-1:~# ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0
>> type=dpdk
>> ovs-vsctl: Error detected while setting up 'dpdk0'.  See ovs-vswitchd log
>> for details.
>> ---
>>
>> No luck... I can't wait to see it working in my lab!
>>
>> Ubuntu rocks! Almost there...   :-D
>>
>> Best,

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

2016-03-07 Thread Martinx - ジェームズ
On 7 March 2016 at 20:16, Martinx - ジェームズ  wrote:

> On 7 March 2016 at 17:28, Martinx - ジェームズ 
> wrote:
>
>> On 7 March 2016 at 16:40, Martinx - ジェームズ 
>> 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 :01:00.0uio-pci-generic
>>> pci :01:00.1uio-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@xenial-1:~# ovs-vsctl add-br ovsbr0
>>> root@xenial-1:~# ovs-vsctl set bridge ovsbr0 datapath_type=netdev
>>> root@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@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 :01:00.0vfio-pci
>> pci :01:00.1vfio-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
>>
>
> After reading INSTALL.DPDK.md again, I realized that it only works with
> VFIO or IGB (UIO), Ubuntu DPDK package does not provides the "igb_uio"
> module, neither via DKMS. So, the only option is VFIO, right?
>
> And, I am unable to use "vfio-pci" configured inside of
> "/etc/dpdk/interfaces" but, I managed to make it work manually.
>
> I just filled a bug report against DPDK Ubuntu package related to this
> "vfio-pci" problem:
>
> ---
> Usege of vfio-pci module via /etc/dpdk/interfaces doesn't work:
> https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1554214
> ---
>
> So, after workaround the bug #1554214 (bug description have the
> instructions), I tried OpenvSwitch with DPDK + 10G NIC, again, still no
> success.
>
> Same problem...
>
> * DPDK using VFIO:
>
> ---
> root@xenial-1:~# dpdk_nic_bind --status
>
> Network devices using DPDK-compatible driver
> 
> :01:00.0 'NetXtreme II BCM57800 1/10 Gigabit Ethernet' drv=vfio-pci
> unused=bnx2x
> :01:00.1 'NetXtreme II BCM57800 1/10 Gigabit Ethernet' drv=vfio-pci
> unused=bnx2x
> ---
>
> * OpenvSwitch with DPDK still failing:
>
> ---
> service openvswitch-switch stop
> service openvswitch-switch start
>
> ps xfa | grep dpdk  # I can see "ovs-vswit... --dpdk -c 0x3 -n 4 -- "
> running...
>
>
> root@xenial-1:~# ovs-vsctl add-br br0 -- set bridge br0
> datapath_type=netdev
> root@xenial-1:~# ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0
> type=dpdk
> ovs-vsctl: Error detected while setting up 'dpdk0'.  See ovs-vswitchd log
> for details.
> ---
>
> No luck... I can't wait to see it working in my lab!
>
> Ubuntu rocks! Almost there...   :-D
>
> Best,
> Thiago
>

Hey guys,

 I just found a minor issue with openvswitch-switch Init Script:

 * Script "/etc/init.d/openvswitch-switch restart" ignores "DPDK_OPTS",
while "service openvswitch-switch restart" works!

 

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

2016-03-07 Thread Martinx - ジェームズ
On 7 March 2016 at 17:28, Martinx - ジェームズ  wrote:

> On 7 March 2016 at 16:40, Martinx - ジェームズ 
> 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 :01:00.0uio-pci-generic
>> pci :01:00.1uio-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@xenial-1:~# ovs-vsctl add-br ovsbr0
>> root@xenial-1:~# ovs-vsctl set bridge ovsbr0 datapath_type=netdev
>> root@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@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 :01:00.0vfio-pci
> pci :01:00.1vfio-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
>

After reading INSTALL.DPDK.md again, I realized that it only works with
VFIO or IGB (UIO), Ubuntu DPDK package does not provides the "igb_uio"
module, neither via DKMS. So, the only option is VFIO, right?

And, I am unable to use "vfio-pci" configured inside of
"/etc/dpdk/interfaces" but, I managed to make it work manually.

I just filled a bug report against DPDK Ubuntu package related to this
"vfio-pci" problem:

---
Usege of vfio-pci module via /etc/dpdk/interfaces doesn't work:
https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1554214
---

So, after workaround the bug #1554214 (bug description have the
instructions), I tried OpenvSwitch with DPDK + 10G NIC, again, still no
success.

Same problem...

* DPDK using VFIO:

---
root@xenial-1:~# dpdk_nic_bind --status

Network devices using DPDK-compatible driver

:01:00.0 'NetXtreme II BCM57800 1/10 Gigabit Ethernet' drv=vfio-pci
unused=bnx2x
:01:00.1 'NetXtreme II BCM57800 1/10 Gigabit Ethernet' drv=vfio-pci
unused=bnx2x
---

* OpenvSwitch with DPDK still failing:

---
service openvswitch-switch stop
service openvswitch-switch start

ps xfa | grep dpdk  # I can see "ovs-vswit... --dpdk -c 0x3 -n 4 -- "
running...


root@xenial-1:~# ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev
root@xenial-1:~# ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0
type=dpdk
ovs-vsctl: Error detected while setting up 'dpdk0'.  See ovs-vswitchd log
for details.
---

No luck... I can't wait to see it working in my lab!

Ubuntu rocks! Almost there...   :-D

Best,
Thiago
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


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

2016-03-07 Thread Martinx - ジェームズ
On 7 March 2016 at 16:40, Martinx - ジェームズ  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 :01:00.0uio-pci-generic
> pci :01:00.1uio-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@xenial-1:~# ovs-vsctl add-br ovsbr0
> root@xenial-1:~# ovs-vsctl set bridge ovsbr0 datapath_type=netdev
> root@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@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 :01:00.0vfio-pci
pci :01:00.1vfio-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
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


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

2016-03-07 Thread Martinx - ジェームズ
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 :01:00.0uio-pci-generic
pci :01:00.1uio-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@xenial-1:~# ovs-vsctl add-br ovsbr0
root@xenial-1:~# ovs-vsctl set bridge ovsbr0 datapath_type=netdev
root@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@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
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Xenial freeze if I plug a second monitor

2016-03-07 Thread Martinx - ジェームズ
This is clearly a bug... Where should be fill a bug report? Against which
Ubuntu package?

On 7 March 2016 at 13:16, Gérard BIGOT  wrote:

> Hi,
>
> I get the same behaviour here. Xenial uptodate. Dell Latitude E6230. Dock
> station, with two screen HP LP2065.
>
> If I boot the laptop on the dock, it freezes on login screen.
>
> I use full disk LUKS, I can enter LUKS Password.
>
> It's a hard freeze, no console access (ctrl+alt+fx doesn't switch).  I get
> just the underscore line of a prompt, not blinking. I never tried if I
> could ssh in.
>
> If boot outside dock (LUKS+lightdm password) , I can dock the laptop after
> boot, the screens light up , and I can start working.
>
> It's a new behaviour of the two last kernels, I guess. Before I could boot
> docked, but I had two use unity-control-center/display in order to sort
> screens out.
>
> Gerard.
>
> 2016-03-07 15:16 GMT+01:00 Martinx - ジェームズ :
>
>> On 7 March 2016 at 05:54, Colin Law  wrote:
>>
>>> On 7 March 2016 at 00:01, Martinx - ジェームズ 
>>> wrote:
>>> > Guys,
>>> >
>>> >  I'm trying to use my second monitor under Xenial (fully upgraded)
>>> but, it
>>> > freezes if I plug the second monitor.
>>> >
>>> >  I'm using it on a brand new Macbook Pro (2015).
>>> >
>>> >  Any thoughts? Is this a know bug?
>>>
>>> There have been bugs in that area but for me it is all working now.
>>> What happens if you boot with the second monitor plugged in?
>>>
>>> Colin
>>>
>>
>> If I boot / power it on, with second monitor already plugged in, it
>> freezes on login screen / lightdm.
>>
>> Thiago
>>
>> --
>> Ubuntu-devel-discuss mailing list
>> Ubuntu-devel-discuss@lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>>
>>
>
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Xenial freeze if I plug a second monitor

2016-03-07 Thread Gérard BIGOT
Hi,

I get the same behaviour here. Xenial uptodate. Dell Latitude E6230. Dock
station, with two screen HP LP2065.

If I boot the laptop on the dock, it freezes on login screen.

I use full disk LUKS, I can enter LUKS Password.

It's a hard freeze, no console access (ctrl+alt+fx doesn't switch).  I get
just the underscore line of a prompt, not blinking. I never tried if I
could ssh in.

If boot outside dock (LUKS+lightdm password) , I can dock the laptop after
boot, the screens light up , and I can start working.

It's a new behaviour of the two last kernels, I guess. Before I could boot
docked, but I had two use unity-control-center/display in order to sort
screens out.

Gerard.

2016-03-07 15:16 GMT+01:00 Martinx - ジェームズ :

> On 7 March 2016 at 05:54, Colin Law  wrote:
>
>> On 7 March 2016 at 00:01, Martinx - ジェームズ 
>> wrote:
>> > Guys,
>> >
>> >  I'm trying to use my second monitor under Xenial (fully upgraded) but,
>> it
>> > freezes if I plug the second monitor.
>> >
>> >  I'm using it on a brand new Macbook Pro (2015).
>> >
>> >  Any thoughts? Is this a know bug?
>>
>> There have been bugs in that area but for me it is all working now.
>> What happens if you boot with the second monitor plugged in?
>>
>> Colin
>>
>
> If I boot / power it on, with second monitor already plugged in, it
> freezes on login screen / lightdm.
>
> Thiago
>
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
>
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Xenial freeze if I plug a second monitor

2016-03-07 Thread Martinx - ジェームズ
On 7 March 2016 at 05:54, Colin Law  wrote:

> On 7 March 2016 at 00:01, Martinx - ジェームズ 
> wrote:
> > Guys,
> >
> >  I'm trying to use my second monitor under Xenial (fully upgraded) but,
> it
> > freezes if I plug the second monitor.
> >
> >  I'm using it on a brand new Macbook Pro (2015).
> >
> >  Any thoughts? Is this a know bug?
>
> There have been bugs in that area but for me it is all working now.
> What happens if you boot with the second monitor plugged in?
>
> Colin
>

If I boot / power it on, with second monitor already plugged in, it freezes
on login screen / lightdm.

Thiago
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Xenial freeze if I plug a second monitor

2016-03-07 Thread Colin Law
On 7 March 2016 at 00:01, Martinx - ジェームズ  wrote:
> Guys,
>
>  I'm trying to use my second monitor under Xenial (fully upgraded) but, it
> freezes if I plug the second monitor.
>
>  I'm using it on a brand new Macbook Pro (2015).
>
>  Any thoughts? Is this a know bug?

There have been bugs in that area but for me it is all working now.
What happens if you boot with the second monitor plugged in?

Colin

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss