[ovs-discuss] ovs-dpdk:cannot link with dpdk

Traynor, Kevin kevin.traynor at intel.com
Tue Oct 27 15:41:18 UTC 2015


> -----Original Message-----
> From: discuss [mailto:discuss-bounces at openvswitch.org] On Behalf Of Loftus,
> Ciara
> Sent: Tuesday, October 27, 2015 3:31 PM
> To: wangrongs163; discuss at openvswitch.org
> Subject: Re: [ovs-discuss] ovs-dpdk:cannot link with dpdk
> 
> >
> > Mr Dear:
> >     I am using ovs on DPDK platform,and encountered the following
> > issue:  "configure: error: cannot link with dpdk".
> > Bellows are the details of the commands.
> >     Here are my files-list:
> > [root at root /home/wangrong]#ls
> > dpdk-2.1.0  iperf-2.0.2  openvswitch-2.4.0  ovs-2.4.0  pcap  tar-gz  test

OVS 2.4 supports DPDK 2.0 - see the INSTALL.DPDK.md in the package. 

On the master branch OVS supports DPDK 2.1. You could try applying
the patch that adds DPDK 2.1 support to OVS if you really want to try
this combination.
http://openvswitch.org/pipermail/dev/2015-September/059616.html


> >
> > (1)Make DPDK
> > export DPDK_DIR=/home/wangrong/dpdk-2.1.0
> >
> > cd $DPDK_DIR
> > vim config/common_linuxapp <修改之后编译成单个lib大文件,支持
> > vhost>
> >     CONFIG_RTE_BUILD_COMBINE_LIBS=y
> >     CONFIG_RTE_LIBRTE_VHOST=y
> >     CONFIG_RTE_LIBRTE_VHOST_USER=n
> >
> > make install T=x86_64-native-linuxapp-gcc //若提示fuse头文件错误,解
> > 决方法见附1.
> > export RTE_SDK=/home/wangrong/dpdk-2.1.0
> > export RTE_TARGET=x86_64-native-linuxapp-gcc
> > export EXTRA_CFLAGS="-O0 -g"
> > cd $DPDK_DIR/lib/librte_vhost/eventfd_link <为了支持vhost,需要编译
> > 该内核模块>
> > make
> > (2)Make OVS
> > export OVS_DIR=/home/wangrong/ovs-2.4.0
> > export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc
> > cd $OVS_DIR
> > ./boot.sh
> > ./configure --with-dpdk=$DPDK_BUILD CFLAGS="-g -O2 -Wno-cast-align" <
> > 编译OVS的时候指定加入DPDK>
> 
> Hi,
> 
> If using OVS v2.4 please ensure that --with-dpdk=/home/wangrong/dpdk-
> 2.1.0/x86_64-native-linuxapp-gcc
> Do not use a relative path. Or else if using a relative path, you need to
> apply this patch https://patchwork.ozlabs.org/patch/518491/
> 
> If including additional CFLAGS, you can follow this format:
> ./configure --with-dpdk=/home/wangrong/dpdk-2.1.0/x86_64-native-linuxapp-gcc
> 'CFLAGS=-g -O2 -Wno-cast-align'
> 
> Ciara
> 
> >
> > Here comes the ERROR:configure: error: cannot link with dpdk
> >         This error confuses me and I come to for help.
> > Thanks a lot.
> >   Sincerely youres WangRong
> >
> >
> >
> >
> >
> >
> >
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss


More information about the discuss mailing list