Hello Daniele, Thank you for your reply. What is interesting is that ovs 2.3.1.90 compiled perfectly fine with dpdk 2.0 so I assumed since 2.3.2 was announced as 2.3.1 plus bug fixes, it would work fine as well.
Please let me know how I can clone branch-2.4 and if it still has limitation of supporting only dpdk 1.6?? Thank you Serguei Serguei Bezverkhi, TECHNICAL LEADER.SERVICES Global SP Services [email protected] Phone: +1 416 306 7312 Mobile: +1 514 234 7374 CCIE (R&S,SP,Sec) - #9527 Cisco.com Think before you print. This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Please click here for Company Registration Information. -----Original Message----- From: Daniele Di Proietto [mailto:[email protected]] Sent: Friday, June 19, 2015 2:33 PM To: Serguei Bezverkhi (sbezverk) Cc: [email protected] Subject: Re: [ovs-discuss] ovs 2.3.2 and dpdk compiling issue 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 Daniele On 19/06/2015 18:08, "Serguei Bezverkhi (sbezverk)" <[email protected]> wrote: >Hello, > >I tried to make OVS 2.3.2 with the latest dpdk library and compile is >failing. I was wondering if it is me doing something wrong or it is in >fact an issue. Here are the steps to repro: >1. >Git clone the latest dpdk >2. >Build it with Combine library and vhost_user set to Yes >3. >Run boot.sh >4. >./configure --with-dpdk=$DPDK_BUILD >(Completed sucsesfully) >5. >make CFLAGS='-O3 -march=native' > >Below is the resulted messages. I would greatly appreciate if you >could confirm if it is the issue or I do something wrong. > >Thank you > >Serguei > > >make CFLAGS='-O3 -march=native' >make all-recursive >make[1]: Entering directory `/root/virtualization/openvswitch-2.3.2' >Making all in datapath >make[2]: Entering directory >`/root/virtualization/openvswitch-2.3.2/datapath' >make[3]: Entering directory >`/root/virtualization/openvswitch-2.3.2/datapath' >make[3]: Nothing to be done for `all-am'. >make[3]: Leaving directory >`/root/virtualization/openvswitch-2.3.2/datapath' >make[2]: Leaving directory >`/root/virtualization/openvswitch-2.3.2/datapath' >make[2]: Entering directory `/root/virtualization/openvswitch-2.3.2' >depbase=`echo lib/aes128.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ >/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. >-I ./include -I ./lib -I ./lib >-I/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include >-Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith >-Wdeclaration-after-statement -Wno-format-zero-length -Wswitch-enum >-Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align >-Wmissing-prototypes -Wmissing-field-initializers -O3 -march=native >-MT lib/aes128.lo -MD -MP -MF $depbase.Tpo -c -o lib/aes128.lo >lib/aes128.c &&\ mv -f $depbase.Tpo $depbase.Plo >libtool: compile: gcc -DHAVE_CONFIG_H -I. -I ./include -I ./lib -I >./lib -I/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include >-Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith >-Wdeclaration-after-statement -Wno-format-zero-length -Wswitch-enum >-Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align >-Wmissing-prototypes -Wmissing-field-initializers -O3 -march=native -MT >lib/aes128.lo -MD -MP -MF lib/.deps/aes128.Tpo -c lib/aes128.c -o >lib/aes128.o depbase=`echo lib/backtrace.lo | sed >'s|[^/]*$|.deps/&|;s|\.lo$||'`;\ >/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. >-I ./include -I ./lib -I ./lib >-I/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include >-Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith >-Wdeclaration-after-statement -Wno-format-zero-length -Wswitch-enum >-Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align >-Wmissing-prototypes -Wmissing-field-initializers -O3 -march=native >-MT lib/backtrace.lo -MD -MP -MF $depbase.Tpo -c -o lib/backtrace.lo >lib/backtrace.c &&\ mv -f $depbase.Tpo $depbase.Plo >libtool: compile: gcc -DHAVE_CONFIG_H -I. -I ./include -I ./lib -I >./lib -I/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include >-Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith >-Wdeclaration-after-statement -Wno-format-zero-length -Wswitch-enum >-Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align >-Wmissing-prototypes -Wmissing-field-initializers -O3 -march=native -MT >lib/backtrace.lo -MD -MP -MF lib/.deps/backtrace.Tpo -c lib/backtrace.c >-o lib/backtrace.o depbase=`echo lib/bfd.lo | sed >'s|[^/]*$|.deps/&|;s|\.lo$||'`;\ >/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. >-I ./include -I ./lib -I ./lib >-I/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include >-Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith >-Wdeclaration-after-statement -Wno-format-zero-length -Wswitch-enum >-Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align >-Wmissing-prototypes -Wmissing-field-initializers -O3 -march=native >-MT lib/bfd.lo -MD -MP -MF $depbase.Tpo -c -o lib/bfd.lo lib/bfd.c &&\ >mv -f $depbase.Tpo $depbase.Plo >libtool: compile: gcc -DHAVE_CONFIG_H -I. -I ./include -I ./lib -I >./lib -I/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include >-Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith >-Wdeclaration-after-statement -Wno-format-zero-length -Wswitch-enum >-Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align >-Wmissing-prototypes -Wmissing-field-initializers -O3 -march=native -MT >lib/bfd.lo -MD -MP -MF lib/.deps/bfd.Tpo -c lib/bfd.c -o lib/bfd.o In >file included from >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_ethdev.h: >183:0, > from lib/netdev-dpdk.h:12, > from lib/ofpbuf.h:25, > from lib/dpif.h:393, > from lib/bfd.c:27: >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether.h: >In function 'rte_vlan_strip': >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_ether. >h:3 >58:2: warning: ISO C90 forbids mixed declarations and code >[-Wdeclaration-after-statement] > struct vlan_hdr *vh = (struct vlan_hdr *)(eh + 1); > ^ >In file included from lib/netdev-dpdk.h:12:0, > from lib/ofpbuf.h:25, > from lib/dpif.h:393, > from lib/bfd.c:27: >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_ethdev.h: > In function 'rte_eth_rx_burst': >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_ethdev.h: >2428:2: warning: ISO C90 forbids mixed declarations and code >[-Wdeclaration-after-statement] > int16_t nb_rx = (*dev->rx_pkt_burst)(dev->data->rx_queues[queue_id], > ^ >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_ethdev.h: > In function 'rte_eth_tx_burst': >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_ethdev.h: >2572:2: warning: ISO C90 forbids mixed declarations and code >[-Wdeclaration-after-statement] > struct rte_eth_rxtx_callback *cb = dev->pre_tx_burst_cbs[queue_id]; > ^ >In file included from lib/netdev-dpdk.h:17:0, > from lib/ofpbuf.h:25, > from lib/dpif.h:393, > from lib/bfd.c:27: >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_spinlock. >h: In function 'rte_try_tm': >/root/virtualization/dpdk/x86_64-native-linuxapp-gcc/include/rte_spinlock. >h:117:2: warning: ISO C90 forbids mixed declarations and code >[-Wdeclaration-after-statement] > int retries = RTE_RTM_MAX_RETRIES; > ^ >In file included from lib/dpif.h:393:0, > from lib/bfd.c:27: >lib/ofpbuf.h: In function 'ofpbuf_data': >lib/ofpbuf.h:359:19: error: 'const struct rte_mbuf' has no member named >'pkt' > return b->mbuf.pkt.data; > ^ >lib/ofpbuf.h: In function 'ofpbuf_set_data': >lib/ofpbuf.h:364:12: error: 'struct rte_mbuf' has no member named 'pkt' > b->mbuf.pkt.data = d; > ^ >lib/ofpbuf.h: In function 'ofpbuf_size': >lib/ofpbuf.h:379:19: error: 'const struct rte_mbuf' has no member named >'pkt' > return b->mbuf.pkt.pkt_len; > ^ >lib/ofpbuf.h: In function 'ofpbuf_set_size': >lib/ofpbuf.h:384:12: error: 'struct rte_mbuf' has no member named 'pkt' > b->mbuf.pkt.data_len = v; /* Current seg length. */ > ^ >lib/ofpbuf.h:385:12: error: 'struct rte_mbuf' has no member named 'pkt' > b->mbuf.pkt.pkt_len = v; /* Total length of all segments linked >to > ^ >lib/ofpbuf.h: In function 'ofpbuf_data': >lib/ofpbuf.h:360:1: warning: control reaches end of non-void function >[-Wreturn-type] } ^ >lib/ofpbuf.h: In function 'ofpbuf_size': >lib/ofpbuf.h:380:1: warning: control reaches end of non-void function >[-Wreturn-type] } ^ >make[2]: *** [lib/bfd.lo] Error 1 >make[2]: Leaving directory `/root/virtualization/openvswitch-2.3.2' >make[1]: *** [all-recursive] Error 1 >make[1]: Leaving directory `/root/virtualization/openvswitch-2.3.2' >make: *** [all] Error 2 > > >Serguei Bezverkhi, >TECHNICAL LEADER.SERVICES >Global SP Services >[email protected] >Phone: +1 416 306 7312 >Mobile: +1 514 234 7374 > >CCIE (R&S,SP,Sec) - #9527 > >Cisco.com ><https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cisco.com_&d=B >QMF >Ag&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_ >Cw5 >yUNjxgD4v5kJqZ2uWLlE&m=B98C2aGopMY09qsNsTskVIY7fZmI0O1Y390WyGq8wk8&s=YL >wwg LP9CyATLLWkWAW9LGinrH4w0SlHiCkkr-3cbcQ&e=> > > Think > before you print. >This email may contain confidential and privileged material for the >sole use of the intended recipient. > Any review, use, distribution or disclosure by others is strictly >prohibited. If you are not the intended recipient (or authorized to >receive for the recipient), please contact the sender by reply email >and delete all copies of this message. >Please click > here ><https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cisco.com_web_ >abo >ut_doing-5Fbusiness_legal_cri_index.html&d=BQMFAg&c=Sqcl0Ez6M0X8aeM67LK >IiD >JAXVeAw-YihVMNtXt-uEs&r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=B >98C >2aGopMY09qsNsTskVIY7fZmI0O1Y390WyGq8wk8&s=VSmtFcvtanb_KEZgsoBcoMfE_zJZK >Va7 zJG3fGGRTvc&e=> for Company Registration Information. > > > _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
