try binding to the uio_pci_generic driver.

Regards,
Darragh.

From: Ranjith Kumar D [mailto:ranjith.ku...@radisys.com]
Sent: 15 September 2017 07:59
To: O'Reilly, Darragh <darragh.orei...@hpe.com>; disc...@openvswitch.org
Subject: RE: [ovs-discuss] error: "could not open network device dpdk0 (Address 
family not supported by protocol)"

Hi Darragh,

Thank you for your suggestion, I tried followed step 5 from the link which you 
shared and also  enabled PMD CPU mask. However VM still hangs while starting 
OVS daemon(ovs-vswitchd --dpdk -c 0x1 -n 4 -- unix:$DB_SOCK --pidfile -detach).

Regards,
Ranjith

From: O'Reilly, Darragh [mailto:darragh.orei...@hpe.com]
Sent: Thursday, September 14, 2017 9:02 PM
To: Ranjith Kumar D 
<ranjith.ku...@radisys.com<mailto:ranjith.ku...@radisys.com>>; 
disc...@openvswitch.org<mailto:disc...@openvswitch.org>
Subject: RE: [ovs-discuss] error: "could not open network device dpdk0 (Address 
family not supported by protocol)"


Maybe you need to set the pmd-cpu-mask. I don't know what it defaults to. I 
think this will place a PMD on the fourth core
ovs-vsctl set Open_vSwitch . other_config:pmd-cpu-mask=0x8

Then make sure ovs-vswitchd is stopped and try starting it like step 5 in 
https://github.com/openvswitch/ovs/blob/branch-2.4/INSTALL.DPDK.md

Regards,
Darragh.

From: 
ovs-discuss-boun...@openvswitch.org<mailto:ovs-discuss-boun...@openvswitch.org> 
[mailto:ovs-discuss-boun...@openvswitch.org] On Behalf Of Ranjith Kumar D
Sent: 14 September 2017 14:29
To: disc...@openvswitch.org<mailto:disc...@openvswitch.org>
Subject: [ovs-discuss] error: "could not open network device dpdk0 (Address 
family not supported by protocol)"

Hello All,

I have installed OVS 2.4.0 in a Virtual machine with DPDK 2.0,  I am getting 
below error when I add DPDK port in OVS bridge.

error: "could not open network device dpdk0 (Address family not supported by 
protocol)"

d68d0789-5e61-47d4-ad2d-838c183b0e41
    Bridge pdn-br
        Port "dpdk0"
            Interface "dpdk0"
                type: dpdk
                error: "could not open network device dpdk0 (Address family not 
supported by protocol)"
        Port pdn-br
            Interface pdn-br
                type: internal

DPDK NIC status:

ubuntu@mysite-vpgwu-slice1-25:~/dpdk-2.0.0/tools$<mailto:ubuntu@mysite-vpgwu-slice1-25:~/dpdk-2.0.0/tools$>
 ./dpdk_nic_bind.py --s

Network devices using DPDK-compatible driver
============================================
0000:00:03.0 'Virtio network device' drv=igb_uio unused=

Network devices using kernel driver
===================================
0000:00:04.0 'Virtio network device' if= drv=virtio-pci unused=igb_uio
0000:00:05.0 'Virtio network device' if= drv=virtio-pci unused=igb_uio
0000:00:06.0 'Virtio network device' if= drv=virtio-pci unused=igb_uio
0000:00:07.0 'Virtio network device' if= drv=virtio-pci unused=igb_uio

Other network devices
=====================
<none>

Huge Page:( cat /proc/meminfo)

HugePages_Total:       1
HugePages_Free:        1
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:    1048576 kB
DirectMap4k:       51068 kB
DirectMap2M:     3094528 kB
DirectMap1G:     7340032 kB


The below are steps which I followed to configure OVS


1.      config_file="/etc/depmod.d/openvswitch.conf"

2.      for module in datapath/linux/*.ko; do   modname="$(basename 
${module})";   echo "override ${modname%.ko} * extra" >> "$config_file";   echo 
"override ${modname%.ko} * weak-updates" >> "$config_file";   done



3.      depmod -a

4.      /sbin/modprobe openvswitch

5.      /sbin/lsmod



6.      mkdir -p /usr/local/etc/openvswitch

7.      ovsdb-tool create /usr/local/etc/openvswitch/conf.db 
vswitchd/vswitch.ovsschema

8.      ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock      
            --remote=db:Open_vSwitch,Open_vSwitch,manager_options               
   --private-key=db:Open_vSwitch,SSL,private_key                  
--certificate=db:Open_vSwitch,SSL,certificate                  
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert                  --pidfile 
-detach

9.      ovs-vsctl --no-wait init

10.   ovs-vswitchd --pidfile -detach

11.   ovs-vsctl add-br pdn-br

12.   ovs-vsctl set bridge pdn-br datapath_type=netdev

13.   ovs-vsctl add-port pdn-br dpdk0 -- set Interface dpdk0 type=dpdk

The VM had hang when I follow below steps instead of above step 10


1.      export DB_SOCK=/usr/local/var/run/openvswitch/db.sock

2.      ovs-vswitchd --dpdk -c 0x1 -n 4 -- unix:$DB_SOCK --pidfile -detach


Output VM hang console:

root@mysite-vpgwu-slice1-25:/home/ubuntu# ovs-vswitchd --dpdk -c 0x1 -n 4 -- 
unix:$DB_SOCK --pidfile -detach

2017-09-14T21:32:31Z|00001|dpdk|INFO|No -vhost_sock_dir provided - defaulting 
to /usr/local/var/run/openvswitch

EAL: Detected lcore 0 as core 0 on socket 0

EAL: Detected lcore 1 as core 0 on socket 0

EAL: Detected lcore 2 as core 0 on socket 0

EAL: Detected lcore 3 as core 0 on socket 0

EAL: Support maximum 128 logical core(s) by configuration.

EAL: Detected 4 lcore(s)

EAL: VFIO modules not all loaded, skip VFIO support...

EAL: Setting up memory...

debug2: channel 0: window 999344 sent adjust 49232

EAL: Ask a virtual area of 0x40000000 bytes

EAL: Virtual area found at 0x7f6700000000 (size = 0x40000000)

EAL: Requesting 1 pages of size 1024MB from socket 0

EAL: TSC frequency is ~1795841 KHz

EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable 
clock cycles !

EAL: Master lcore 0 is ready (tid=75c8db40;cpuset=[0])

PMD: ENICPMD trace: rte_enic_pmd_init

EAL: PCI device 0000:00:03.0 on NUMA socket -1

EAL:   probe driver: 1af4:1000 rte_virtio_pmd

EAL: PCI device 0000:00:04.0 on NUMA socket -1

EAL:   probe driver: 1af4:1000 rte_virtio_pmd

EAL: PCI device 0000:00:05.0 on NUMA socket -1

EAL:   probe driver: 1af4:1000 rte_virtio_pmd

EAL: PCI device 0000:00:06.0 on NUMA socket -1

EAL:   probe driver: 1af4:1000 rte_virtio_pmd

EAL: PCI device 0000:00:07.0 on NUMA socket -1

EAL:   probe driver: 1af4:1000 rte_virtio_pmd



Any input ?



Regards,

Ranjith
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to