[ovs-discuss] No Ethernet devices found with I350

Daniele Di Proietto diproiettod at vmware.com
Wed Jun 24 11:32:03 UTC 2015


I find that surprising, because OVS 2.3 supports only DPDK 1.6.

To support DPDK 1.7 in OVS we had to

1) Change a few DPDK calls to reflect the updated APIs

2) Add --whole-archive in the linking process to include the pmd
   drivers.  A failure to do so would result in the exact same
   problem you're experiencing.

Somehow it appears that your local copy of OVS includes (1), but
doesn't include (2).

Where did you get the OVS code? Do you have local changes?

On 24/06/2015 11:42, "Rapelly, Varun" <vrapelly at sonusnet.com> wrote:

>Hi Daniel,
>
>One more thing about the following command after creating the bridge br0:
>
>ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk.
>
>If I try to execute the above cmd, it says dpdk0 no such device. And if I
>give specific interface like ens3f0, even that also does not work.
>
>What exactly I should use in this case?
>
>Regards,
>Varun 
>
>-----Original Message-----
>From: Rapelly, Varun
>Sent: Wednesday, June 24, 2015 10:07 AM
>To: 'Daniele Di Proietto'
>Cc: bugs at openvswitch.org
>Subject: RE: [ovs-discuss] No Ethernet devices found with I350
>
>Hi Daniele,
>
>Thanks for your reply :)
>
>I'm using openvswitch-2.3.1 and compiled using below set of commands.
>
>export DPDK_DIR=/root/dpdk-1.7.1
>cd /root/dpdk-1.7.1
>make install T=x86_64-native-linuxapp-gcc cd /root/openvswitch-2.3.1
>export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc/
>./boot.sh
>./configure --with-dpdk=$DPDK_BUILD
>make
>
>I would like to create a OVS bridge by adding ens3f0 & ens3f1 ports to
>that.
>
>[root at artha ~]# /root/dpdk-1.7.1/tools/dpdk_nic_bind.py --status Network
>devices using DPDK-compatible driver
>============================================
><none>
>Network devices using kernel driver
>===================================
>0000:0a:00.0 'I350 Gigabit Network Connection' if=ens3f0 drv=igb unused=
>0000:0a:00.1 'I350 Gigabit Network Connection' if=ens3f1 drv=igb unused=
>
> [root at artha ~]# ifconfig -a|grep flags
>ens3f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>ens3f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>
>PFA setup.sh script, for all the cmd which I used to run ovs.
>
>1. I added "default_hugepagesz=1GB hugepagesz=1G hugepages=1" to the boot
>line and 1 GB huge page created 2. When I bind igb_uio driver [to
>0000:0a:00.0  & 0000:0a:00.1 ] and then if I run vswitch daemon [--with
>dpdk], Ideally it should detect binded PCI device. Am I right?
>
>Please let me know if I'm missing something or something is incorrect
>
>Thanks & Regards,
>Varun
>-----Original Message-----
>From: Daniele Di Proietto [mailto:diproiettod at vmware.com]
>Sent: Tuesday, June 23, 2015 10:16 PM
>To: Rapelly, Varun
>Cc: bugs at openvswitch.org
>Subject: Re: [ovs-discuss] No Ethernet devices found with I350
>
>The commands you're typing seem correct.
>
>Which version of OVS are you using? How are you compiling it?
>
>On 23/06/2015 08:23, "Rapelly, Varun" <vrapelly at sonusnet.com> wrote:
>
>>Hi All,
>> 
>>I¹m a newbie to openvswitch and I followed the below link to install
>>ovs with DPDK on RHEL7 machine.
>> 
>>[root at artha ~]# uname -a
>>Linux BL4 3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2014
>>x86_64
>>x86_64 x86_64 GNU/Linux
>> 
>>https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openvswit
>>ch_ovs_blob_master_INSTALL.DPDK.md&d=BQIFAw&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVe
>>Aw-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=AwnwYy9W
>>hcgg7CnQNrIe2FW9HpahcKMYKh3R8a3Z5NI&s=GOUqQRne6KSVH7m7aCPjDfQb1Jql6_zIjSd
>>63q8BJoA&e= 
>><https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openvs
>>wit
>>ch_ovs_blob_master_INSTALL.DPDK.md&d=BQMFAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAX
>>VeA
>>w-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=BELvXwU
>>3yO
>>I7c4Fnird6AUH868juo1h2R4VdS2w87ps&s=d8CFnv-IsbTKEf_5cvZ6JCE-HwaX1qSr-uR
>>NfI
>>C0hWg&e=>
>> 
>>When I ran vswitch daemon, it reports following error [I binded igb_uio
>>to the i350 NIC].
>> 
>>2015-06-22T18:04:38Z|00003|dpdk|ERR|No Ethernet devices found. Try
>>assigning ports to UIO.
>>2015-06-22T18:04:38Z|00004|dpdk|INFO|Ethernet Device Count: 0
>> 
>>Following PCI bind status.
>> 
>>[root at artha ~]# ./dpdk-1.7.1/tools/dpdk_nic_bind.py --status
>> 
>>Network devices using DPDK-compatible driver
>>============================================
>>0000:0a:00.0 'I350 Gigabit Network Connection' drv=igb_uio unused=
>> 
>>Network devices using kernel driver
>>===================================
>>0000:03:00.0 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=eno1 drv=tg3
>>unused=
>>0000:03:00.1 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=eno2 drv=tg3
>>unused=
>>0000:03:00.2 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=eno3 drv=tg3
>>unused=
>>0000:03:00.3 'NetXtreme BCM5719 Gigabit Ethernet PCIe' if=eno4 drv=tg3
>>unused=
>>0000:0a:00.1 'I350 Gigabit Network Connection' if=ens3f1 drv=igb
>>unused=
>> 
>>Other network devices
>>=====================
>><none>
>> 
>>Then I created I ovs bridge using below cmd:
>>./ovs-vsctl --no-wait add-br ovs -- set Bridge ovs datapath_type=netdev
>>                 
>>
>>./ovs-vsctl add-port ovs dpdk0 -- set Interface dpdk0 type=dpdk
>> 
>>When I add dpdk port it reports, ³could not open network device dpdk0
>>(Unknown error -19)²
>> 
>>Please let me know
>>1. 
>>What could be possible reason for not detecting the interface which is
>>binded to igb_uio?
>>2. 
>>How to add the port which is binded to igb_uio here?
>>
>> 
>>Thanks in advance.
>> 
>>Regards,
>>Varun
>> 
>>
>



More information about the discuss mailing list