[ovs-discuss] [OVS-DPDK] fail configure with dpdk lib

Traynor, Kevin kevin.traynor at intel.com
Thu Sep 3 21:45:54 UTC 2015


[re-adding list]

> -----Original Message-----
> From: Serguei Bezverkhi (sbezverk) [mailto:sbezverk at cisco.com]
> Sent: Thursday, September 3, 2015 10:17 PM
> To: Traynor, Kevin; Wang, Alex
> Subject: RE: [OVS-DPDK] fail configure with dpdk lib
> 
> Hi Kevin,
> 
> After applying second patch,  http://openvswitch.org/pipermail/dev/2015-
> September/059541.html to OVS 2.4.0
> compilation fails:

That patch is to fix an issue with a post OVS 2.4.0 release commit, so it
shouldn't be applied to OVS 2.4.0.

> 
> lib/netdev-dpdk.c: In function 'dpdk_eth_dev_init':
> lib/netdev-dpdk.c:532:23: error: request for member 'ea' in something not a
> structure or union
>      memcpy(dev->hwaddr.ea, eth_addr.addr_bytes, ETH_ADDR_LEN);
>                        ^
> 
> Any suggestions. These two patches you mentioned, do they apply to 2.4.0 and
> master or master only?

The patch above should not go on OVS 2.4, the other one (DPDK 2.1 integration)
is intended for master but you could try with OVS 2.4 if you wanted. 

DPDK 2.0 is the version paired with OVS 2.4, but I can't think of any reason
DPDK 2.1 wouldn't work with OVS 2.4 plus the patch (assuming it applies cleanly). 

> 
> Thank you
> 
> Serguei
> 
> 
> 
> Serguei Bezverkhi,
> TECHNICAL LEADER.SERVICES
> Global SP Services
> sbezverk at cisco.com
> 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.
> 
> 
> From: discuss [mailto:discuss-bounces at openvswitch.org] On Behalf Of Traynor,
> Kevin
> Sent: Thursday, September 03, 2015 5:24 AM
> To: Wang, Alex <alex.wang at intel.com>; bugs at openvswitch.org;
> discuss at openvswitch.org
> Cc: Wang, Alex <alex.wang at intel.com>
> Subject: Re: [ovs-discuss] [OVS-DPDK] fail configure with dpdk lib
> 
> 
> From: discuss [mailto:discuss-bounces at openvswitch.org] On Behalf Of Wang,
> Alex
> Sent: Wednesday, September 2, 2015 7:06 AM
> To: bugs at openvswitch.org; discuss at openvswitch.org
> Cc: Wang, Alex
> Subject: [ovs-discuss] [OVS-DPDK] fail configure with dpdk lib
> 
> Hi Team,
> 
> I am following INSTALL.DPDK.md and try to build a OVS environment with DPDK
> lib. But we encountered an error during compiling OVS with DPDK lib.
> Here are my steps and corresponding error info, could you please help to
> check any exception from DPDK end? Thanks a lot in advance!
> 
> 1. Configure and install DPDK2.1.0 build
> a. CONFIG_RTE_BUILD_COMBINE_LIBS=y                // to generate single lib
> file in DPDK
> b. CONFIG_RTE_LIBRTE_VHOST=y                                // to build DPDK
> with vhost lib
> c. make install T=x86_64-native-linuxapp-gcc          // build and install
> the lib
> d. here are the lib generated, please help to confirm if we missed any
> specific for OVS requirement
> 
> 
> [kt] I see you are using DPDK 2.1.0 - did you pick up the patch to enable
> DPDK 2.1.0 support in OVS?
> [kt] http://openvswitch.org/pipermail/dev/2015-September/059542.html
> [kt] The combined lib name has changed in DPDK 2.1.0, so you could be hitting
> that problem
> 
> [kt] Also at the tip of master you'll need this patch
> [kt] http://openvswitch.org/pipermail/dev/2015-September/059541.html
> 
> [kt] Assuming there is no problem with merges of these, then these are only
> temporary steps.
> 
> 
> 
> 2. try to configure and build OVS with DPDK lib involved
> a. ./boot.sh
> b. ./configure --with-dpdk=$DPDK_BUILD CFLAGS="-g -O2 -Wno-cast-
> align"            // $DPDK_BUILD is pointing to DPDK lib path
> 
> [kt] Just to confirm this should point to the dpdk build dir so it would be
> <your_path>/dpdk-2.1.0/x86_64-native-linuxapp-gcc
> 
> c. The error comes out during compiling, cannot link with dpdk.
> config.log(full log) is attached in mail, also list all the *.a files in
> $RTE_SDK/x86_64-native-linuxapp-gcc/lib/ as below. Very appreciate if you can
> figure out any mismatch in DPDK libraries for OVS.
> 
> 
> .........
> .........
> | /* end confdefs.h.  */
> | #include <rte_config.h>
> |                              #include <rte_eal.h>
> | int
> | main ()
> | {
> | int rte_argc; char ** rte_argv;
> |                              rte_eal_init(rte_argc, rte_argv);
> |   ;
> |   return 0;
> | }
> configure:18276: error: cannot link with dpdk
> 
> 
> 
> 
> Best Regards,
> Alex




More information about the discuss mailing list