Andy,

Thank you for your suggestion!

However, when I try to compile the vrouter with the github contrail-dpdk 
version, I receive an "error: implicit declaration of function 
'rte_pktmbuf_mtod_offset'" error.  The rte_pktmbuf_mtod_offset function is not 
found in the contrail-dpdk repository.  It is also NOT found in the intel dpdk 
repository.  The only place I can find it is in the dpdk loads 2.1, 2.2 and 
1604 from dpdk.org.  I have tried this against the master branch and the R3.0 
branch.

Also if I tried to compile vrouter/dpdk/vr_dpdk_host.c directly with the 
contrail-dpdk it still cannot find rcu_barrier, but it also fails to find the 
'rte_pktmbuf_mtod_offset' function.

                You said that you verified contrail-dpdk version?  Maybe I'm 
following the wrong procedure?  Here is basically what I'm doing:

repo init -u [email protected]:Juniper/contrail-vnc
repo sync
python third_party/fetch_packages.py
git clone https://github.com/Juniper/contrail-dpdk 
contrail-dpdk.gitcp<https://github.com/Juniper/contrail-dpdk%20contrail-dpdk.gitcp>
 third_party/dpdk (or download version 2.1 from dpdk.org and untar to 
third_party/dpdk)
scons
make -f packages.make all (except I don't get this far due to errors without 
modifying the vroute source code)

                Note that if I use the dpdk 2.1 from dpdk.org, comment out the 
one line that calls rcu_barrier, and I ignore one warning from 
vrouter/dpdk/vr_dpdk_virtio.c, I can get the vrouter package to build in the 
R3.0 branch.  However, it seems like I shouldn't have to do that, so it makes 
me think I must be doing something wrong.

I really appreciate any help,

Thank you!

Jay Rhine

Here are the full details of the error I get when using contrail-dpdk

gcc -o build/debug/tools/sandesh/library/c/transport/thrift_fake_transport.o -c 
-g -O0 -DDEBUG -DSANDESH -Ibuild/debug/tools/sandesh/library/c 
-Itools/sandesh/library/c 
tools/sandesh/library/c/transport/thrift_fake_transport.c
ar rc build/debug/tools/sandesh/library/c/libsandesh-c.a 
build/debug/tools/sandesh/library/c/sandesh.o 
build/debug/tools/sandesh/library/c/protocol/thrift_protocol.o 
build/debug/tools/sandesh/library/c/protocol/thrift_binary_protocol.o 
build/debug/tools/sandesh/library/c/transport/thrift_transport.o 
build/debug/tools/sandesh/library/c/transport/thrift_memory_buffer.o 
build/debug/tools/sandesh/library/c/transport/thrift_fake_transport.o
ranlib build/debug/tools/sandesh/library/c/libsandesh-c.a
Install file: "build/debug/tools/sandesh/library/c/libsandesh-c.a" as 
"build/lib/libsandesh-c.a"
gcc -o build/debug/vrouter/uvrouter/uvrouter -g 
build/debug/vrouter/uvrouter/uvrouter.o -Lbuild/lib -Lbuild/debug/vrouter/host 
-Lvrouter/host -Lbuild/debug/vrouter/sandesh -Lvrouter/sandesh 
-Lbuild/debug/vrouter/dp-core -Lvrouter/dp-core -lvrouter -ldp_core 
-ldp_sandesh_c -ldp_core -lsandesh-c
scons: building associated VariantDir targets: build/debug/vrouter/dpdk
gcc -o build/debug/vrouter/dpdk/dpdk_vrouter.o -c -g -O0 -DDEBUG -Werror -Wall 
-msse4.2 -DCOMPILE_DEBUG_LOGS -Ivrouter/include 
-Ibuild/debug/vrouter/sandesh/gen-c -Ivrouter/sandesh/gen-c -Itools 
-Itools/sandesh/library/c 
-Ibuild/debug/vrouter/dpdk/x86_64-native-linuxapp-gcc/include 
-Ivrouter/dpdk/x86_64-native-linuxapp-gcc/include vrouter/dpdk/dpdk_vrouter.c
gcc -o build/debug/vrouter/dpdk/vr_dpdk_ethdev.o -c -g -O0 -DDEBUG -Werror 
-Wall -msse4.2 -DCOMPILE_DEBUG_LOGS -Ivrouter/include 
-Ibuild/debug/vrouter/sandesh/gen-c -Ivrouter/sandesh/gen-c -Itools 
-Itools/sandesh/library/c 
-Ibuild/debug/vrouter/dpdk/x86_64-native-linuxapp-gcc/include 
-Ivrouter/dpdk/x86_64-native-linuxapp-gcc/include vrouter/dpdk/vr_dpdk_ethdev.c
vrouter/dpdk/vr_dpdk_ethdev.c: In function 'vr_dpdk_ethdev_rx_emulate':
vrouter/dpdk/vr_dpdk_ethdev.c:1000:9: error: implicit declaration of function 
'rte_pktmbuf_mtod_offset' [-Werror=implicit-function-declaration]
         rte_prefetch0(rte_pktmbuf_mtod_offset(pkts[i], uint8_t *, 
RTE_CACHE_LINE_SIZE));
         ^
vrouter/dpdk/vr_dpdk_ethdev.c:1000:56: error: expected expression before 
'uint8_t'
         rte_prefetch0(rte_pktmbuf_mtod_offset(pkts[i], uint8_t *, 
RTE_CACHE_LINE_SIZE));
                                                        ^
cc1: all warnings being treated as errors
scons: *** [build/debug/vrouter/dpdk/vr_dpdk_ethdev.o] Error 1
scons: building terminated because of errors.
kwc@HP-RBC-07:~/contrail_master.current$

----
Jay Rhine, CISSP
DMTS, Solution Validation & Cloud Transformation
Solutions & Partners Business Unit
Applications & Analytics Group, Nokia
Email - [email protected]
Home Office - 732-930-0380

From: Dev [mailto:[email protected]] On Behalf Of Andy Wang
Sent: Thursday, June 02, 2016 1:30 AM
To: [email protected]
Subject: Re: [opencontrail-dev] Dev Digest, Vol 34, Issue 2

Hello  Jay Rhine,
I found you downloaded  the dpdk driver package from Intel sites,  you can try 
to download dpdk driver package  form https://github.com/Juniper/contrail-dpdk.
I verified it and it is OK.

Andy Wang





At 2016-06-02 11:40:07, 
[email protected]<mailto:[email protected]> 
wrote:

>Send Dev mailing list submissions to

>       [email protected]<mailto:[email protected]>

>

>To subscribe or unsubscribe via the World Wide Web, visit

>       
> http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

>

>or, via email, send a message with subject or body 'help' to

>       
> [email protected]<mailto:[email protected]>

>

>You can reach the person managing the list at

>       
> [email protected]<mailto:[email protected]>

>

>When replying, please edit your Subject line so it is more specific

>than "Re: Contents of Dev digest..."

>

>

>Today's Topics:

>

>   1. Re: Problems compiling OpenContrail 3.0 with  DPDK Support

>      (Rhine, Jay (Nokia - US))

>   2. Re: Problems compiling OpenContrail 3.0 with DPDK Support

>      (Rajagopalan Sivaramakrishnan)

>

>

>----------------------------------------------------------------------

>

>Message: 1

>Date: Thu, 2 Jun 2016 02:59:07 +0000

>From: "Rhine, Jay (Nokia - US)" 
><[email protected]<mailto:[email protected]>>

>To: "Rhine, Jay (Nokia - US)" 
><[email protected]<mailto:[email protected]>>,

>       "[email protected]<mailto:[email protected]>" 
> <[email protected]<mailto:[email protected]>>,

>       "[email protected]<mailto:[email protected]>" 
> <[email protected]<mailto:[email protected]>>

>Subject: Re: [opencontrail-dev] Problems compiling OpenContrail 3.0

>       with    DPDK Support

>Message-ID:

>       
> <c316cd5b06ee924dbd204608340cd766012fc92...@us70uwxchmba03.zam.alcatel-lucent.com<mailto:c316cd5b06ee924dbd204608340cd766012fc92...@us70uwxchmba03.zam.alcatel-lucent.com>>

>

>Content-Type: text/plain; charset="us-ascii"

>

>Hello,

>

>                Has anyone successfully built a OpenContrail 3.0 vrouter with 
> dpdk support and used it successfully?   Although, I can get something to 
> compile, it does not seem to have all the necessary startup scripts and 
> configuration files connected to it.  I must be missing something?  Any 
> suggestions on how to compile this correctly?  Or maybe there is a repository 
> that already has the packages for 3.0 somewhere?  The standard PPA and the 
> tcpcloud PPA don't seem to have the dpdk vrouter package in them ...

>

>Thank you!

>

>Jay

>

>

>From: Rhine, Jay (Nokia - US)

>Sent: Tuesday, May 31, 2016 8:59 AM

>To: '[email protected]'; 
>[email protected]<mailto:[email protected]>

>Subject: RE: Problems compiling OpenContrail 3.0 with DPDK Support

>

>Hello,

>

>                I'm resending this, since it was probably missed by many 
> people since it was sent during a US holiday.  Any help or suggestions is 
> appreciated.

>

>Thank you!

>

>--------------------

>Folks,

>

>                Happy Memorial Day weekend!

>

>                I'm hoping someone here can help me with a problem that I'm 
> running into.  I've had some success with installing OpenContrail 2.x from 
> the available Ubuntu packages. However, now I am trying to trying to compile 
> OpenContrail 3.0 from source and I'm running into problems.  Any suggestions 
> would be appreciated.  I am roughly following the directions from 
> http://juniper.github.io/contrail-vnc/README.html.

>

>I have been able to build most of the the packages following the documentation 
>at that link.  However, I ran into a problem where it was not trying to build 
>the contrail-vrouter-dpdk package.  The best I could tell, this was initially 
>failing because the dpdk directory was missing from the "third_party" 
>directory.  There is no mention on the docs to install this (I would have 
>thought fetch_packages would have downloaded it), but I added it manually, and 
>then it appears that the vrouter with dpdk attempts to build.  It gets pretty 
>far, but then it fails with the following error:

>

>gcc -o build/debug/vrouter/dpdk/vr_dpdk_flow_mem.o -c -g -O0 -DDEBUG -Werror 
>-Wall -msse4.2 -DCOMPILE_DEBUG_LOGS -Ivrouter/include 
>-Ibuild/debug/vrouter/sandesh/gen-c -Ivrouter/sandesh/gen-c -Itools 
>-Itools/sandesh/library/c 
>-Ibuild/debug/vrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>-Ivrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>vrouter/dpdk/vr_dpdk_flow_mem.c

>gcc -o build/debug/vrouter/dpdk/vr_dpdk_fragment_assembler.o -c -g -O0 -DDEBUG 
>-Werror -Wall -msse4.2 -DCOMPILE_DEBUG_LOGS -Ivrouter/include 
>-Ibuild/debug/vrouter/sandesh/gen-c -Ivrouter/sandesh/gen-c -Itools 
>-Itools/sandesh/library/c 
>-Ibuild/debug/vrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>-Ivrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>vrouter/dpdk/vr_dpdk_fragment_assembler.c

>gcc -o build/debug/vrouter/dpdk/vr_dpdk_host.o -c -g -O0 -DDEBUG -Werror -Wall 
>-msse4.2 -DCOMPILE_DEBUG_LOGS -Ivrouter/include 
>-Ibuild/debug/vrouter/sandesh/gen-c -Ivrouter/sandesh/gen-c -Itools 
>-Itools/sandesh/library/c 
>-Ibuild/debug/vrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>-Ivrouter/dpdk/x86_64-native-linuxapp-gcc/include vrouter/dpdk/vr_dpdk_host.c

>vrouter/dpdk/vr_dpdk_host.c: In function 'dpdk_soft_reset':

>vrouter/dpdk/vr_dpdk_host.c:1182:5: error: implicit declaration of function 
>'rcu_barrier' [-Werror=implicit-function-declaration]

>     rcu_barrier();

>     ^

>cc1: all warnings being treated as errors

>scons: *** [build/debug/vrouter/dpdk/vr_dpdk_host.o] Error 1

>scons: building terminated because of errors.

>kwc@HP-RBC-07:~/contrail_30.current$<mailto:kwc@HP-RBC-07:~/contrail_30.current$<mailto:kwc@HP-RBC-07:~/contrail_30.current$%3cmailto:kwc@HP-RBC-07:~/contrail_30.current$>>

>

>I'm not sure why its trying to call rcu_barrier exactly, but as far as I can 
>tell rcu_barrier is a function that is part of the linux kernel.  The 
>rcu_barrier function is not defined anywhere in the contrail source code, and 
>there does not appear to be anything including the linux kernel headers.    
>I'm running this on Linux Ubuntu Trusty 14.04.01 (latest patches installed) 
>with kernel 3.16.0-70-generic.

>

>

>This is roughly the procedure that I am following:

>

>apt-add-repository ppa:opencontrail/ppa

>apt-get update

>apt-get install <lots of packages>

>Manually install libuv, cassandra-cpp-driver, and cassandra-cpp-driver-dev

>

>repo init -u 
>[email protected]:Juniper/contrail-vnc<mailto:[email protected]:Juniper/contrail-vnc<mailto:[email protected]:Juniper/contrail-vnc%3cmailto:[email protected]:Juniper/contrail-vnc>>

>repo sync

>Python third_party/fetch_packages.py

>wget http://downloadmirror.intel.com/22777/eng/dpdk-2.0.0.tar.gz

>tar xfvz dpdk-2.0.0.tar.gz

>cp -pr  dpdk-2.0.0 third_party/dpdk

>

>scons vrouter

>

>Any suggestions or comments would be very much appreciated.

>

>Thank you,

>

>Jay Rhine

>Nokia

>-------------- next part --------------

>An HTML attachment was scrubbed...

>URL: 
><http://lists.opencontrail.org/pipermail/dev_lists.opencontrail.org/attachments/20160602/c2bc67a5/attachment-0001.html>

>

>------------------------------

>

>Message: 2

>Date: Thu, 2 Jun 2016 03:39:04 +0000

>From: Rajagopalan Sivaramakrishnan <[email protected]<mailto:[email protected]>>

>To: "Rhine, Jay (Nokia - US)" 
><[email protected]<mailto:[email protected]>>,

>       "[email protected]<mailto:[email protected]>" 
> <[email protected]<mailto:[email protected]>>,

>       "[email protected]<mailto:[email protected]>" 
> <[email protected]<mailto:[email protected]>>

>Subject: Re: [opencontrail-dev] Problems compiling OpenContrail 3.0

>       with DPDK Support

>Message-ID: 
><[email protected]<mailto:[email protected]>>

>Content-Type: text/plain; charset="utf-8"

>

>Hi Jay,

>    There are some startup scripts required to start vrouter with DPDK. Also, 
> there are some scripts that are used to provision a compute node with 
> DPDK-based vrouter. Do you want to install vrouter with DPDK using a 
> pre-built image and try it out? Or do you want to be able to build and 
> package it yourself?

>

>Raja

>

>From: Dev 
><[email protected]<mailto:[email protected]>>
> on behalf of "Rhine, Jay (Nokia - US)" 
><[email protected]<mailto:[email protected]>>

>Date: Wednesday, June 1, 2016 at 7:59 PM

>To: "Rhine, Jay (Nokia - US)" 
><[email protected]<mailto:[email protected]>>, 
>"[email protected]<mailto:[email protected]>" 
><[email protected]<mailto:[email protected]>>, 
>"[email protected]<mailto:[email protected]>" 
><[email protected]<mailto:[email protected]>>

>Subject: Re: [opencontrail-dev] Problems compiling OpenContrail 3.0 with DPDK 
>Support

>

>Hello,

>

>                Has anyone successfully built a OpenContrail 3.0 vrouter with 
> dpdk support and used it successfully?   Although, I can get something to 
> compile, it does not seem to have all the necessary startup scripts and 
> configuration files connected to it.  I must be missing something?  Any 
> suggestions on how to compile this correctly?  Or maybe there is a repository 
> that already has the packages for 3.0 somewhere?  The standard PPA and the 
> tcpcloud PPA don?t seem to have the dpdk vrouter package in them ?

>

>Thank you!

>

>Jay

>

>

>From: Rhine, Jay (Nokia - US)

>Sent: Tuesday, May 31, 2016 8:59 AM

>To: '[email protected]'; 
>[email protected]<mailto:[email protected]>

>Subject: RE: Problems compiling OpenContrail 3.0 with DPDK Support

>

>Hello,

>

>                I?m resending this, since it was probably missed by many 
> people since it was sent during a US holiday.  Any help or suggestions is 
> appreciated.

>

>Thank you!

>

>--------------------

>Folks,

>

>                Happy Memorial Day weekend!

>

>                I?m hoping someone here can help me with a problem that I?m 
> running into.  I?ve had some success with installing OpenContrail 2.x from 
> the available Ubuntu packages. However, now I am trying to trying to compile 
> OpenContrail 3.0 from source and I?m running into problems.  Any suggestions 
> would be appreciated.  I am roughly following the directions from 
> http://juniper.github.io/contrail-vnc/README.html.

>

>I have been able to build most of the the packages following the documentation 
>at that link.  However, I ran into a problem where it was not trying to build 
>the contrail-vrouter-dpdk package.  The best I could tell, this was initially 
>failing because the dpdk directory was missing from the ?third_party? 
>directory.  There is no mention on the docs to install this (I would have 
>thought fetch_packages would have downloaded it), but I added it manually, and 
>then it appears that the vrouter with dpdk attempts to build.  It gets pretty 
>far, but then it fails with the following error:

>

>gcc -o build/debug/vrouter/dpdk/vr_dpdk_flow_mem.o -c -g -O0 -DDEBUG -Werror 
>-Wall -msse4.2 -DCOMPILE_DEBUG_LOGS -Ivrouter/include 
>-Ibuild/debug/vrouter/sandesh/gen-c -Ivrouter/sandesh/gen-c -Itools 
>-Itools/sandesh/library/c 
>-Ibuild/debug/vrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>-Ivrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>vrouter/dpdk/vr_dpdk_flow_mem.c

>gcc -o build/debug/vrouter/dpdk/vr_dpdk_fragment_assembler.o -c -g -O0 -DDEBUG 
>-Werror -Wall -msse4.2 -DCOMPILE_DEBUG_LOGS -Ivrouter/include 
>-Ibuild/debug/vrouter/sandesh/gen-c -Ivrouter/sandesh/gen-c -Itools 
>-Itools/sandesh/library/c 
>-Ibuild/debug/vrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>-Ivrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>vrouter/dpdk/vr_dpdk_fragment_assembler.c

>gcc -o build/debug/vrouter/dpdk/vr_dpdk_host.o -c -g -O0 -DDEBUG -Werror -Wall 
>-msse4.2 -DCOMPILE_DEBUG_LOGS -Ivrouter/include 
>-Ibuild/debug/vrouter/sandesh/gen-c -Ivrouter/sandesh/gen-c -Itools 
>-Itools/sandesh/library/c 
>-Ibuild/debug/vrouter/dpdk/x86_64-native-linuxapp-gcc/include 
>-Ivrouter/dpdk/x86_64-native-linuxapp-gcc/include vrouter/dpdk/vr_dpdk_host.c

>vrouter/dpdk/vr_dpdk_host.c: In function 'dpdk_soft_reset':

>vrouter/dpdk/vr_dpdk_host.c:1182:5: error: implicit declaration of function 
>'rcu_barrier' [-Werror=implicit-function-declaration]

>     rcu_barrier();

>     ^

>cc1: all warnings being treated as errors

>scons: *** [build/debug/vrouter/dpdk/vr_dpdk_host.o] Error 1

>scons: building terminated because of errors.

>kwc@HP-RBC-07:~/contrail_30.current$<mailto:kwc@HP-RBC-07:~/contrail_30.current$<mailto:kwc@HP-RBC-07:~/contrail_30.current$%3cmailto:kwc@HP-RBC-07:~/contrail_30.current$>>

>

>I?m not sure why its trying to call rcu_barrier exactly, but as far as I can 
>tell rcu_barrier is a function that is part of the linux kernel.  The 
>rcu_barrier function is not defined anywhere in the contrail source code, and 
>there does not appear to be anything including the linux kernel headers.    
>I?m running this on Linux Ubuntu Trusty 14.04.01 (latest patches installed) 
>with kernel 3.16.0-70-generic.

>

>

>This is roughly the procedure that I am following:

>

>apt-add-repository ppa:opencontrail/ppa

>apt-get update

>apt-get install <lots of packages>

>Manually install libuv, cassandra-cpp-driver, and cassandra-cpp-driver-dev

>

>repo init -u 
>[email protected]:Juniper/contrail-vnc<mailto:[email protected]:Juniper/contrail-vnc<mailto:[email protected]:Juniper/contrail-vnc%3cmailto:[email protected]:Juniper/contrail-vnc>>

>repo sync

>Python third_party/fetch_packages.py

>wget http://downloadmirror.intel.com/22777/eng/dpdk-2.0.0.tar.gz

>tar xfvz dpdk-2.0.0.tar.gz

>cp -pr  dpdk-2.0.0 third_party/dpdk

>

>scons vrouter

>

>Any suggestions or comments would be very much appreciated.

>

>Thank you,

>

>Jay Rhine

>Nokia

>-------------- next part --------------

>An HTML attachment was scrubbed...

>URL: 
><http://lists.opencontrail.org/pipermail/dev_lists.opencontrail.org/attachments/20160602/d4ad6395/attachment.html>

>

>------------------------------

>

>Subject: Digest Footer

>

>_______________________________________________

>Dev mailing list

>[email protected]<mailto:[email protected]>

>http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

>

>

>------------------------------

>

>End of Dev Digest, Vol 34, Issue 2

>**********************************



_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to