[ovs-discuss] Error while trying to configure DPDK rings

Vinod, Chegu chegu_vinod at hp.com
Wed Oct 15 09:55:08 UTC 2014

Thanks Maryam.  I shall apply the patch and give it a try.


From: Tahhan, Maryam [mailto:maryam.tahhan at intel.com]
Sent: Wednesday, October 15, 2014 2:16 AM
To: Vinod, Chegu; discuss at openvswitch.org
Subject: RE: Error while trying to configure DPDK rings

Hi Vinod
there is a patch fix suggested http://patchwork.openvswitch.org/patch/6617/ if you need to use ivshmem ports right away give the patch a go.


From: discuss [mailto:discuss-bounces at openvswitch.org] On Behalf Of Vinod, Chegu
Sent: Wednesday, October 15, 2014 6:13 AM
To: discuss at openvswitch.org<mailto:discuss at openvswitch.org>
Subject: [ovs-discuss] Error while trying to configure DPDK rings


I had git cloned the OVS master tree a few days ago and using 1.7.0 version of DPDK along with latest OVS I tried to followed the instructions mentioned in INSTALL.DPDK.  Running into an error and was wondering as to what I may be doing wrong..or may have missed.

Have a 2 socket server with a separate NIC for my regular site network etc.  and am using the following second NIC (Intel 82599) for my initial experiments.

05:00.0 Ethernet controller: Intel Corporation 82599 10 Gigabit Dual Port Backplane Connection (rev 01)
05:00.1 Ethernet controller: Intel Corporation 82599 10 Gigabit Dual Port Backplane Connection (rev 01)

Setting up DPDK :

#  mount -t hugetlbfs -o pagesize=1G none /dev/hugepages

# modprobe uio

# insmod /usr/src/dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko

# modprobe tun

  # cd /usr/src/dpdk/tools

# ./dpdk_nic_bind.py  --status

# ./dpdk_nic_bind.py --force --bind=igb_uio 0000:05:00.0 0000:05:00.1

OVS setup :

# rm -f /usr/local/etc/openvswitch/conf.db

# cd /usr/src/ovs

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

# ./ovsdb/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=Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach

#./utilities/ovs-vsctl --no-wait init

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

# ./vswitchd/ovs-vswitchd --dpdk -c 0x1 -n 4 --socket-mem 1024,0 -- unix:$DB_SOCK --pidfile --detach  --log-file=/var/log/openvswitch/ovs-vswitchd.log

# ovs-vsctl add-br br0

# ovs-vsctl set bridge br0 datapath_type=netdev

# ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk # ovs-vsctl add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk

I can list both the ports on br0.

Continued with the steps in INSTALL.DPDK and executed the following "script"

#! /bin/sh
# Move to command directory
cd /usr/src/ovs/utilities/

# ./ovs-ofctl del-flows br0

# ./ovs-ofctl add-flow br0 in_port=1,dl_type=0x800,nw_src=,\
#./ovs-ofctl add-flow br0 in_port=2,dl_type=0x800,nw_src=,\

#./ovs-vsctl set Open_vSwitch . other_config:pmd-cpu-mask=00000550

'was able to check the presence of 2  PMD threads via "top -p `pidof ovs-vswitchd` -H -d1"  ('am using a 2 socket server).

#./ovs-vsctl set Open_vSwitch . other_config:n-dpdk-rxqs=4

#./ovs-vsctl add-port br0 dpdkr0 -- set Interface dpdkr0 type=dpdkr

Ended with an error here...

2014-10-07T15:48:52.003Z|00038|dpif_netdev|ERR|dpdkr0, cannot set multiq
2014-10-07T15:48:52.003Z|00039|dpif|WARN|netdev at ovs-netdev: failed to add dpdkr0 as port: Resource temporarily unavailable



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20141015/3db02612/attachment-0002.html>

More information about the discuss mailing list