[ovs-discuss] Openvswitch with DPDK issue

Sundar Ramakrishnan sundar_ramki at yahoo.com
Mon Jun 29 23:08:23 UTC 2015


Thanks to Daniele, I have openvswitch compiled with dpdk. The way I installed is posted sundar-ramki/ovs-dpdk.
|   |
|   |  |   |   |   |   |   |
| sundar-ramki/ovs-dpdkovs-dpdk - Openvswitch with DPDK |
|  |
| View on github.com | Preview by Yahoo |
|  |
|   |



I have the following questions - 
1. How do I figure out if my VM is really using Openvswitch with DPDK?
2. Are there any counters for packets entering and leaving the switch and/or dpdk?
3. Also, I am unable to use the ofctl commands. Following is what I get - 
[root at test1 ~]# ovs-ofctl show br23ovs-ofctl: br23 is not a bridge or a socket[root at test1 ~]# ovs-vsctl showd8cfc890-a4fc-4398-869c-59c5412a3e79    Bridge "br23"        Port "eth3"            Interface "eth3"        Port "br23"            Interface "br23"                type: internal        Port "eth2"            Interface "eth2"
Any input will be appreciated.
Thank youSRK
 


     On Tuesday, June 23, 2015 12:25 PM, Daniele Di Proietto <diproiettod at vmware.com> wrote:
   

 Hi,

OVS 2.3.2 supports DPDK 1.6, as stated in INSTALL.DPDK.
Many APIs have changed in DPDK in a backward incompatible
way.

Also, DPDK support in OVS 2.3.2 is experimental.  It would be
better to use the code from branch-2.4 (with DPDK 2.0)

Daniele


On 22/06/2015 23:30, "Sundar Ramakrishnan" <sundar_ramki at yahoo.com> wrote:

>
>Hello,
>
>
>I am a newbie to this environment and I am unable to find which release
>of DPDK works fine with Openvswitch. I hope you could enlighten me with
>some docs or references with which I could build a working setup -
>
>
>RHEL 6.6
>DPDK - 1.7.1
>OVS - 2.3.1
>
>
>Following are some steps I figured out from the web & my experiments -
>
>
>Error:
>
>
>/usr/src/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/rte_common.h: In
>function ârte_is_alignedâ:
>/usr/src/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/rte_common.h:176:
>warning: cast from function call of type âuintptr_tâ to non-matching type
>âvoid *â
>lib/netdev-dpdk.c: In function âdpdk_class_initâ:
>lib/netdev-dpdk.c:1081: warning: implicit declaration of function
>ârte_pmd_init_allâ
>lib/netdev-dpdk.c: In function âdpdk_initâ:
>lib/netdev-dpdk.c:1189: error: too few arguments to function
>ârte_memzone_dumpâ
>make[2]: *** [lib/netdev-dpdk.lo] Error 1
>make[2]: Leaving directory `/usr/src/openvswitch-2.3.1'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/usr/src/openvswitch-2.3.1'
>make: *** [all] Error 2
>
>
>
>
>DPDK Open vSwitch Notes RHEL6.6:
>------------------------
>
>
>Additions to kernel cmdline:
>iommu=pt intel_iommu=on default_hugepagesz=1G hugepagesz=1G
>transparent_hugepage=never hugepages=32
>
>
>BUILD DPDK:
>cd /usr/src/dpdk-1.6.0r2 <--- 1st working version
>cd /usr/src/dpdk-1.7.1 <--- Only works with 82599
>cd /usr/src/dpdk-1.8.0 <--- x540s are recognized ovs doesn't build with
>it tho
>export DPDK=$(pwd)
>export TGT=x86_64-native-linuxapp-gcc
>make CONFIG_RTE_BUILD_COMBINE_LIBS=y CONFIG_RTE_BUILD_SHARED_LIB=n
>CONFIG_RTE_LIBRTE_IXGBE_PMD=y CONFIG_RTE_LIBRTE_IGB_PMD=y install T=$TGT
>
>
>
>BUILD OpenvSwitch:
>cd /usr/src/openvswitch-2.3.1
>export OVS=$(pwd)
>./boot.sh
>./configure --disable-ssl --with-dpdk=$DPDK/$TGT LIBS=-ldl
>make
>make install
>ln -sf /usr/local/bin/ovs-vsctl /usr/bin/ovs-vsctl <--- libvirt requires
>ovs-vsctl to be here
>
>
>
>
>Please let me know if you find something wrong in what I am doing.
>
>
>Thanking you
>
>
>Sundar
>
>
>


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150629/41de5b79/attachment-0002.html>


More information about the discuss mailing list