One of the problems might be that after starting ovsdb-server
you should also start ovs-vswitchd.  Please see INSTALL.DPDK.

Also, OVS 2.3 supports only DPDK 1.6.  I would recommend to
take OVS from the git repository, branch-2.4 and use it with
DPDK 2.0.

On 30/06/2015 00:08, "Sundar Ramakrishnan" <sundar_ra...@yahoo.com> wrote:

>Thanks to Daniele, I have openvswitch compiled with dpdk. The way I
>installed is posted sundar-ramki/ovs-dpdk
><https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sundar-2D
>ramki_ovs-2Ddpdk_blob_master_OVS-2DDPDK-2DRHEL.Install&d=BQMFaQ&c=Sqcl0Ez6
>M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJq
>Z2uWLlE&m=RC1iGY-tlGnL-Rfetu2Dr1UGh-Sz61bloCGxOTHrin8&s=yPHTaOIyMy-LqFU1pC
>JUspiArNQVVk8-99zJj3tyaW8&e=>.
> 
> 
> 
><https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sundar-2D
>ramki_ovs-2Ddpdk_blob_master_OVS-2DDPDK-2DRHEL.Install&d=BQMFaQ&c=Sqcl0Ez6
>M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJq
>Z2uWLlE&m=RC1iGY-tlGnL-Rfetu2Dr1UGh-Sz61bloCGxOTHrin8&s=yPHTaOIyMy-LqFU1pC
>JUspiArNQVVk8-99zJj3tyaW8&e=>
> 
> 
> 
> 
> 
>sundar-ramki/ovs-dpdk
><https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sundar-2D
>ramki_ovs-2Ddpdk_blob_master_OVS-2DDPDK-2DRHEL.Install&d=BQMFaQ&c=Sqcl0Ez6
>M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJq
>Z2uWLlE&m=RC1iGY-tlGnL-Rfetu2Dr1UGh-Sz61bloCGxOTHrin8&s=yPHTaOIyMy-LqFU1pC
>JUspiArNQVVk8-99zJj3tyaW8&e=>
>ovs-dpdk - Openvswitch with DPDK
>
>
>
>View
> on github.com 
><https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sundar-2D
>ramki_ovs-2Ddpdk_blob_master_OVS-2DDPDK-2DRHEL.Install&d=BQMFaQ&c=Sqcl0Ez6
>M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJq
>Z2uWLlE&m=RC1iGY-tlGnL-Rfetu2Dr1UGh-Sz61bloCGxOTHrin8&s=yPHTaOIyMy-LqFU1pC
>JUspiArNQVVk8-99zJj3tyaW8&e=>
>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@test1 ~]# ovs-ofctl show br23
>ovs-ofctl: br23 is not a bridge or a socket
>[root@test1 ~]# ovs-vsctl show
>d8cfc890-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 you
>SRK
>
>
>
>
>
>
>On Tuesday, June 23, 2015 12:25 PM, Daniele Di Proietto
><diproiet...@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_ra...@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
>>
>>
>>
>
>
>
>
>
>
>
>

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to