diff mbox

[PATCHv3] Updated ODP-DPDK README

Message ID 1407752210-2892-1-git-send-email-venkatesh.vivekanandan@linaro.org
State New
Headers show

Commit Message

Venkatesh Vivekanandan Aug. 11, 2014, 10:16 a.m. UTC
From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>

- export RTE_SDK and RTE_TARGET before compiling ODP
- new commands for odp_l2fwd and pktio
- cleanup

Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>
---
 platform/linux-dpdk/README | 27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

Comments

Anders Roxell Aug. 12, 2014, 1:09 p.m. UTC | #1
On 2014-08-11 15:46, venkatesh.vivekanandan@linaro.org wrote:
> From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>
> 
> - export RTE_SDK and RTE_TARGET before compiling ODP
> - new commands for odp_l2fwd and pktio
> - cleanup
> 
> Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>
> ---
>  platform/linux-dpdk/README | 27 ++++++++++++++++++---------
>  1 file changed, 18 insertions(+), 9 deletions(-)
> 
> diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README
> index 14ad4e8..e4b7edd 100644
> --- a/platform/linux-dpdk/README
> +++ b/platform/linux-dpdk/README
> @@ -16,22 +16,28 @@ $ git clone http://92.243.14.124/git/dpdk ./<dpdk-dir>
>  # we support only 1.6.0r2 of dpdk for now
>  $ git tag -l -- will list all the tags available
>  $ git checkout -b 1.6.0 tags/v1.6.0r2
> -# Please refer dpdk.org website for more details on how to build dpdk.
> +# Please refer to http://dpdk.org/doc for more details on how to build
> +# dpdk. Getting started guide for Linux might be of help.

I think we should write DPDK with capital letters.

Cheers,
Anders

>  # Best effort is done to provide some help on dpdk cmds below for Ubuntu,
>  # where it was compiled and tested.
>  # Please refer "How to setup and compile DPDK" section in this document
>  
>  # To compile ODP with linux-dpdk
> +
> +$ export RTE_SDK=<dpdk-dir>
> +# For example
> +$ export RTE_SDK=/root/dpdk
> +$ export RTE_TARGET=x86_64-default-linuxapp-gcc
> +# RTE_TARGET is the configuration used while building DPDK
> +
>  $ cd <odp-dir>
>  $ ./bootstrap
> -$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=<dpdk-install-path>
> -# For example
> -$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=/root/dpdk/build
> +$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=$RTE_SDK/$RTE_TARGET
>  $ make
>  
> -# Commands to test
> -l2fwding app - sudo ./test/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2
> -loopback app - sudo ./test/packet/odp_pktio -i 0,1 -m 0 -c 2
> +# App commands to test
> +l2fwding app - sudo ./example/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2
> +loopback app - sudo ./example/packet/odp_pktio -i 0,1 -m 0 -c 2
>  
>  	-i 0,1 - interface number
>  	-m 0   - burst mode
> @@ -42,8 +48,11 @@ How to setup and compile DPDK:
>  $ cd <dpdk-dir>
>  
>  # This has to be done only once.
> -# Following command will generate build dir as ./build in <dpdk-dir>
> -$ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC"
> +$ make config T=x86_64-default-linuxapp-gcc O=x86_64-default-linuxapp-gcc
> +# set CONFIG_RTE_BUILD_COMBINE_LIBS=y in .config file
> +# Note: if non-intel SFP's are used in IXGBE, then set CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y in .config file
> +$ make install T=x86_64-default-linuxapp-gcc EXTRA_CFLAGS="-fPIC"
> +
>  
>  # If "conflicting types for skb_set_hash" error happens during dpdk
>  # build, then please knock-off skb_set_hash function from kcompat.h as
> -- 
> 1.8.1.2
> 
> 
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
Venkatesh Vivekanandan Aug. 12, 2014, 1:44 p.m. UTC | #2
On 12 August 2014 18:39, Anders Roxell <anders.roxell@linaro.org> wrote:

> On 2014-08-11 15:46, venkatesh.vivekanandan@linaro.org wrote:
> > From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>
> >
> > - export RTE_SDK and RTE_TARGET before compiling ODP
> > - new commands for odp_l2fwd and pktio
> > - cleanup
> >
> > Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org
> >
> > ---
> >  platform/linux-dpdk/README | 27 ++++++++++++++++++---------
> >  1 file changed, 18 insertions(+), 9 deletions(-)
> >
> > diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README
> > index 14ad4e8..e4b7edd 100644
> > --- a/platform/linux-dpdk/README
> > +++ b/platform/linux-dpdk/README
> > @@ -16,22 +16,28 @@ $ git clone http://92.243.14.124/git/dpdk
> ./<dpdk-dir>
> >  # we support only 1.6.0r2 of dpdk for now
> >  $ git tag -l -- will list all the tags available
> >  $ git checkout -b 1.6.0 tags/v1.6.0r2
> > -# Please refer dpdk.org website for more details on how to build dpdk.
> > +# Please refer to http://dpdk.org/doc for more details on how to build
> > +# dpdk. Getting started guide for Linux might be of help.
>
> I think we should write DPDK with capital letters.
>
> Will fix it and send out v4.


> Cheers,
> Anders
>
> >  # Best effort is done to provide some help on dpdk cmds below for
> Ubuntu,
> >  # where it was compiled and tested.
> >  # Please refer "How to setup and compile DPDK" section in this document
> >
> >  # To compile ODP with linux-dpdk
> > +
> > +$ export RTE_SDK=<dpdk-dir>
> > +# For example
> > +$ export RTE_SDK=/root/dpdk
> > +$ export RTE_TARGET=x86_64-default-linuxapp-gcc
> > +# RTE_TARGET is the configuration used while building DPDK
> > +
> >  $ cd <odp-dir>
> >  $ ./bootstrap
> > -$ ./configure --with-platform=linux-dpdk
> --with-sdk-install-path=<dpdk-install-path>
> > -# For example
> > -$ ./configure --with-platform=linux-dpdk
> --with-sdk-install-path=/root/dpdk/build
> > +$ ./configure --with-platform=linux-dpdk
> --with-sdk-install-path=$RTE_SDK/$RTE_TARGET
> >  $ make
> >
> > -# Commands to test
> > -l2fwding app - sudo ./test/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2
> > -loopback app - sudo ./test/packet/odp_pktio -i 0,1 -m 0 -c 2
> > +# App commands to test
> > +l2fwding app - sudo ./example/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2
> > +loopback app - sudo ./example/packet/odp_pktio -i 0,1 -m 0 -c 2
> >
> >       -i 0,1 - interface number
> >       -m 0   - burst mode
> > @@ -42,8 +48,11 @@ How to setup and compile DPDK:
> >  $ cd <dpdk-dir>
> >
> >  # This has to be done only once.
> > -# Following command will generate build dir as ./build in <dpdk-dir>
> > -$ make install T=x86_64-default-linuxapp-gcc
> CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC"
> > +$ make config T=x86_64-default-linuxapp-gcc
> O=x86_64-default-linuxapp-gcc
> > +# set CONFIG_RTE_BUILD_COMBINE_LIBS=y in .config file
> > +# Note: if non-intel SFP's are used in IXGBE, then set
> CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y in .config file
> > +$ make install T=x86_64-default-linuxapp-gcc EXTRA_CFLAGS="-fPIC"
> > +
> >
> >  # If "conflicting types for skb_set_hash" error happens during dpdk
> >  # build, then please knock-off skb_set_hash function from kcompat.h as
> > --
> > 1.8.1.2
> >
> >
> > _______________________________________________
> > lng-odp mailing list
> > lng-odp@lists.linaro.org
> > http://lists.linaro.org/mailman/listinfo/lng-odp
>
> --
> Anders Roxell
> anders.roxell@linaro.org
> M: +46 709 71 42 85 | IRC: roxell
>
diff mbox

Patch

diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README
index 14ad4e8..e4b7edd 100644
--- a/platform/linux-dpdk/README
+++ b/platform/linux-dpdk/README
@@ -16,22 +16,28 @@  $ git clone http://92.243.14.124/git/dpdk ./<dpdk-dir>
 # we support only 1.6.0r2 of dpdk for now
 $ git tag -l -- will list all the tags available
 $ git checkout -b 1.6.0 tags/v1.6.0r2
-# Please refer dpdk.org website for more details on how to build dpdk.
+# Please refer to http://dpdk.org/doc for more details on how to build
+# dpdk. Getting started guide for Linux might be of help.
 # Best effort is done to provide some help on dpdk cmds below for Ubuntu,
 # where it was compiled and tested.
 # Please refer "How to setup and compile DPDK" section in this document
 
 # To compile ODP with linux-dpdk
+
+$ export RTE_SDK=<dpdk-dir>
+# For example
+$ export RTE_SDK=/root/dpdk
+$ export RTE_TARGET=x86_64-default-linuxapp-gcc
+# RTE_TARGET is the configuration used while building DPDK
+
 $ cd <odp-dir>
 $ ./bootstrap
-$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=<dpdk-install-path>
-# For example
-$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=/root/dpdk/build
+$ ./configure --with-platform=linux-dpdk --with-sdk-install-path=$RTE_SDK/$RTE_TARGET
 $ make
 
-# Commands to test
-l2fwding app - sudo ./test/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2
-loopback app - sudo ./test/packet/odp_pktio -i 0,1 -m 0 -c 2
+# App commands to test
+l2fwding app - sudo ./example/l2fwd/odp_l2fwd -i 0,1 -m 0 -c 2
+loopback app - sudo ./example/packet/odp_pktio -i 0,1 -m 0 -c 2
 
 	-i 0,1 - interface number
 	-m 0   - burst mode
@@ -42,8 +48,11 @@  How to setup and compile DPDK:
 $ cd <dpdk-dir>
 
 # This has to be done only once.
-# Following command will generate build dir as ./build in <dpdk-dir>
-$ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC"
+$ make config T=x86_64-default-linuxapp-gcc O=x86_64-default-linuxapp-gcc
+# set CONFIG_RTE_BUILD_COMBINE_LIBS=y in .config file
+# Note: if non-intel SFP's are used in IXGBE, then set CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y in .config file
+$ make install T=x86_64-default-linuxapp-gcc EXTRA_CFLAGS="-fPIC"
+
 
 # If "conflicting types for skb_set_hash" error happens during dpdk
 # build, then please knock-off skb_set_hash function from kcompat.h as