Message ID | 1418902380-15719-1-git-send-email-venkatesh.vivekanandan@linaro.org |
---|---|
State | Accepted |
Commit | 031c955d60683380eb1523551e273f551f84ce4b |
Headers | show |
Ping! On 18 December 2014 at 17:03, <venkatesh.vivekanandan@linaro.org> wrote: > From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org> > > - Added math library while linking > - Added -rpath to locate the shared objects > - Code modification done to support DPDK 1.7.1 > - Updated README > > Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org> > --- > platform/linux-dpdk/Makefile.am | 2 +- > platform/linux-dpdk/Makefile.inc | 1 + > platform/linux-dpdk/README | 19 ++++++++++--------- > platform/linux-dpdk/odp_buffer_pool.c | 2 +- > platform/linux-dpdk/odp_init.c | 5 ----- > platform/linux-dpdk/odp_packet.c | 2 +- > 6 files changed, 14 insertions(+), 17 deletions(-) > > diff --git a/platform/linux-dpdk/Makefile.am > b/platform/linux-dpdk/Makefile.am > index 686df6a..db11e0a 100644 > --- a/platform/linux-dpdk/Makefile.am > +++ b/platform/linux-dpdk/Makefile.am > @@ -18,7 +18,7 @@ AM_CFLAGS += > -I$(top_srcdir)/platform/linux-generic/include > AM_CFLAGS += -I$(top_srcdir)/platform/linux-generic/include/api > AM_CFLAGS += -I$(top_srcdir)/helper/include > > -DPDK_LIBS="-lintel_dpdk -ldl" > +DPDK_LIBS="-lintel_dpdk -ldl -lm" > LIBS += $(DPDK_LIBS) > > include_HEADERS = \ > diff --git a/platform/linux-dpdk/Makefile.inc > b/platform/linux-dpdk/Makefile.inc > index e69de29..f681940 100644 > --- a/platform/linux-dpdk/Makefile.inc > +++ b/platform/linux-dpdk/Makefile.inc > @@ -0,0 +1 @@ > +AM_LDFLAGS += -R$(SDK_INSTALL_PATH)/lib > diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README > index 0f2210b..85ff112 100644 > --- a/platform/linux-dpdk/README > +++ b/platform/linux-dpdk/README > @@ -7,15 +7,15 @@ ODP-DPDK: > --------- > This effort is to port ODP on top of DPDK and use DPDK as the > accelerator for all intel NIC's. Pre-requisite is DPDK should be cloned > and > -compiled. DPDK and ODP was compiled and tested on Ubuntu 14.04 > +compiled. DPDK and ODP was compiled and tested on Ubuntu 14.04 LTS > 3.13.0-29-generic kernel. > > # To Clone DPDK > $ git clone http://92.243.14.124/git/dpdk ./<dpdk-dir> > > -# we support only 1.6.0r2 of DPDK for now > +# we support only 1.7.1 of DPDK for now > $ git tag -l -- will list all the tags available > -$ git checkout -b 1.6.0 tags/v1.6.0r2 > +$ git checkout -b 1.7.1 tags/v1.7.1 > # 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, > @@ -27,7 +27,7 @@ $ git checkout -b 1.6.0 tags/v1.6.0r2 > $ export RTE_SDK=<dpdk-dir> > # For example > $ export RTE_SDK=/root/dpdk > -$ export RTE_TARGET=x86_64-default-linuxapp-gcc > +$ export RTE_TARGET=x86_64-native-linuxapp-gcc > # RTE_TARGET is the configuration used while building DPDK > > $ cd <odp-dir> > @@ -48,11 +48,12 @@ How to setup and compile DPDK: > $ cd <dpdk-dir> > > # This has to be done only once. > -$ 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" > - > +$ make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc > +# set CONFIG_RTE_BUILD_COMBINE_LIBS=y and CONFIG_RTE_BUILD_SHARED_LIB=y in > +# ./x86_64-native-linuxapp-gcc/.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-native-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 > diff --git a/platform/linux-dpdk/odp_buffer_pool.c > b/platform/linux-dpdk/odp_buffer_pool.c > index 8325b9e..ca25ace 100644 > --- a/platform/linux-dpdk/odp_buffer_pool.c > +++ b/platform/linux-dpdk/odp_buffer_pool.c > @@ -282,5 +282,5 @@ void odp_buffer_free(odp_buffer_t buf) > > void odp_buffer_pool_print(odp_buffer_pool_t pool_id) > { > - rte_mempool_dump((const struct rte_mempool *)pool_id); > + rte_mempool_dump(stdout, (const struct rte_mempool *)pool_id); > } > diff --git a/platform/linux-dpdk/odp_init.c > b/platform/linux-dpdk/odp_init.c > index 404e616..fa10022 100644 > --- a/platform/linux-dpdk/odp_init.c > +++ b/platform/linux-dpdk/odp_init.c > @@ -37,11 +37,6 @@ int odp_init_dpdk(void) > return -1; > } > > - if (rte_pmd_init_all() < 0) { > - ODP_ERR("Cannot init pmd\n"); > - return -1; > - } > - > if (rte_eal_pci_probe() < 0) { > ODP_ERR("Cannot probe PCI\n"); > return -1; > diff --git a/platform/linux-dpdk/odp_packet.c > b/platform/linux-dpdk/odp_packet.c > index 7b6b082..beb69b2 100644 > --- a/platform/linux-dpdk/odp_packet.c > +++ b/platform/linux-dpdk/odp_packet.c > @@ -367,7 +367,7 @@ void odp_packet_print(odp_packet_t pkt) > str[len] = '\0'; > > printf("\n%s\n", str); > - rte_pktmbuf_dump(&hdr->buf_hdr.mb, 32); > + rte_pktmbuf_dump(stdout, &hdr->buf_hdr.mb, 32); > > p = odp_packet_start(pkt); > printf("00000000: %02X %02X %02X %02X %02X %02X %02X %02X\n", > -- > 1.9.1 > >
On 18/12/14 11:33, venkatesh.vivekanandan@linaro.org wrote: > From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org> > > - Added math library while linking > - Added -rpath to locate the shared objects > - Code modification done to support DPDK 1.7.1 > - Updated README > > Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org> Reviewed-by: Zoltan Kiss <zoltan.kiss@linaro.org> > --- > platform/linux-dpdk/Makefile.am | 2 +- > platform/linux-dpdk/Makefile.inc | 1 + > platform/linux-dpdk/README | 19 ++++++++++--------- > platform/linux-dpdk/odp_buffer_pool.c | 2 +- > platform/linux-dpdk/odp_init.c | 5 ----- > platform/linux-dpdk/odp_packet.c | 2 +- > 6 files changed, 14 insertions(+), 17 deletions(-) > > diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am > index 686df6a..db11e0a 100644 > --- a/platform/linux-dpdk/Makefile.am > +++ b/platform/linux-dpdk/Makefile.am > @@ -18,7 +18,7 @@ AM_CFLAGS += -I$(top_srcdir)/platform/linux-generic/include > AM_CFLAGS += -I$(top_srcdir)/platform/linux-generic/include/api > AM_CFLAGS += -I$(top_srcdir)/helper/include > > -DPDK_LIBS="-lintel_dpdk -ldl" > +DPDK_LIBS="-lintel_dpdk -ldl -lm" > LIBS += $(DPDK_LIBS) > > include_HEADERS = \ > diff --git a/platform/linux-dpdk/Makefile.inc b/platform/linux-dpdk/Makefile.inc > index e69de29..f681940 100644 > --- a/platform/linux-dpdk/Makefile.inc > +++ b/platform/linux-dpdk/Makefile.inc > @@ -0,0 +1 @@ > +AM_LDFLAGS += -R$(SDK_INSTALL_PATH)/lib > diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README > index 0f2210b..85ff112 100644 > --- a/platform/linux-dpdk/README > +++ b/platform/linux-dpdk/README > @@ -7,15 +7,15 @@ ODP-DPDK: > --------- > This effort is to port ODP on top of DPDK and use DPDK as the > accelerator for all intel NIC's. Pre-requisite is DPDK should be cloned and > -compiled. DPDK and ODP was compiled and tested on Ubuntu 14.04 > +compiled. DPDK and ODP was compiled and tested on Ubuntu 14.04 LTS > 3.13.0-29-generic kernel. > > # To Clone DPDK > $ git clone http://92.243.14.124/git/dpdk ./<dpdk-dir> > > -# we support only 1.6.0r2 of DPDK for now > +# we support only 1.7.1 of DPDK for now > $ git tag -l -- will list all the tags available > -$ git checkout -b 1.6.0 tags/v1.6.0r2 > +$ git checkout -b 1.7.1 tags/v1.7.1 > # 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, > @@ -27,7 +27,7 @@ $ git checkout -b 1.6.0 tags/v1.6.0r2 > $ export RTE_SDK=<dpdk-dir> > # For example > $ export RTE_SDK=/root/dpdk > -$ export RTE_TARGET=x86_64-default-linuxapp-gcc > +$ export RTE_TARGET=x86_64-native-linuxapp-gcc > # RTE_TARGET is the configuration used while building DPDK > > $ cd <odp-dir> > @@ -48,11 +48,12 @@ How to setup and compile DPDK: > $ cd <dpdk-dir> > > # This has to be done only once. > -$ 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" > - > +$ make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc > +# set CONFIG_RTE_BUILD_COMBINE_LIBS=y and CONFIG_RTE_BUILD_SHARED_LIB=y in > +# ./x86_64-native-linuxapp-gcc/.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-native-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 > diff --git a/platform/linux-dpdk/odp_buffer_pool.c b/platform/linux-dpdk/odp_buffer_pool.c > index 8325b9e..ca25ace 100644 > --- a/platform/linux-dpdk/odp_buffer_pool.c > +++ b/platform/linux-dpdk/odp_buffer_pool.c > @@ -282,5 +282,5 @@ void odp_buffer_free(odp_buffer_t buf) > > void odp_buffer_pool_print(odp_buffer_pool_t pool_id) > { > - rte_mempool_dump((const struct rte_mempool *)pool_id); > + rte_mempool_dump(stdout, (const struct rte_mempool *)pool_id); > } > diff --git a/platform/linux-dpdk/odp_init.c b/platform/linux-dpdk/odp_init.c > index 404e616..fa10022 100644 > --- a/platform/linux-dpdk/odp_init.c > +++ b/platform/linux-dpdk/odp_init.c > @@ -37,11 +37,6 @@ int odp_init_dpdk(void) > return -1; > } > > - if (rte_pmd_init_all() < 0) { > - ODP_ERR("Cannot init pmd\n"); > - return -1; > - } > - > if (rte_eal_pci_probe() < 0) { > ODP_ERR("Cannot probe PCI\n"); > return -1; > diff --git a/platform/linux-dpdk/odp_packet.c b/platform/linux-dpdk/odp_packet.c > index 7b6b082..beb69b2 100644 > --- a/platform/linux-dpdk/odp_packet.c > +++ b/platform/linux-dpdk/odp_packet.c > @@ -367,7 +367,7 @@ void odp_packet_print(odp_packet_t pkt) > str[len] = '\0'; > > printf("\n%s\n", str); > - rte_pktmbuf_dump(&hdr->buf_hdr.mb, 32); > + rte_pktmbuf_dump(stdout, &hdr->buf_hdr.mb, 32); > > p = odp_packet_start(pkt); > printf("00000000: %02X %02X %02X %02X %02X %02X %02X %02X\n", >
On 13 January 2015 at 22:02, Zoltan Kiss <zoltan.kiss@linaro.org> wrote: > > > On 18/12/14 11:33, venkatesh.vivekanandan@linaro.org wrote: > >> From: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org> >> >> - Added math library while linking >> - Added -rpath to locate the shared objects >> - Code modification done to support DPDK 1.7.1 >> - Updated README >> >> Signed-off-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org> >> > > Reviewed-by: Zoltan Kiss <zoltan.kiss@linaro.org> > > Merged, Thanks! > > --- >> platform/linux-dpdk/Makefile.am | 2 +- >> platform/linux-dpdk/Makefile.inc | 1 + >> platform/linux-dpdk/README | 19 ++++++++++--------- >> platform/linux-dpdk/odp_buffer_pool.c | 2 +- >> platform/linux-dpdk/odp_init.c | 5 ----- >> platform/linux-dpdk/odp_packet.c | 2 +- >> 6 files changed, 14 insertions(+), 17 deletions(-) >> >> diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/ >> Makefile.am >> index 686df6a..db11e0a 100644 >> --- a/platform/linux-dpdk/Makefile.am >> +++ b/platform/linux-dpdk/Makefile.am >> @@ -18,7 +18,7 @@ AM_CFLAGS += -I$(top_srcdir)/platform/ >> linux-generic/include >> AM_CFLAGS += -I$(top_srcdir)/platform/linux-generic/include/api >> AM_CFLAGS += -I$(top_srcdir)/helper/include >> >> -DPDK_LIBS="-lintel_dpdk -ldl" >> +DPDK_LIBS="-lintel_dpdk -ldl -lm" >> LIBS += $(DPDK_LIBS) >> >> include_HEADERS = \ >> diff --git a/platform/linux-dpdk/Makefile.inc b/platform/linux-dpdk/ >> Makefile.inc >> index e69de29..f681940 100644 >> --- a/platform/linux-dpdk/Makefile.inc >> +++ b/platform/linux-dpdk/Makefile.inc >> @@ -0,0 +1 @@ >> +AM_LDFLAGS += -R$(SDK_INSTALL_PATH)/lib >> diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README >> index 0f2210b..85ff112 100644 >> --- a/platform/linux-dpdk/README >> +++ b/platform/linux-dpdk/README >> @@ -7,15 +7,15 @@ ODP-DPDK: >> --------- >> This effort is to port ODP on top of DPDK and use DPDK as the >> accelerator for all intel NIC's. Pre-requisite is DPDK should be cloned >> and >> -compiled. DPDK and ODP was compiled and tested on Ubuntu 14.04 >> +compiled. DPDK and ODP was compiled and tested on Ubuntu 14.04 LTS >> 3.13.0-29-generic kernel. >> >> # To Clone DPDK >> $ git clone http://92.243.14.124/git/dpdk ./<dpdk-dir> >> >> -# we support only 1.6.0r2 of DPDK for now >> +# we support only 1.7.1 of DPDK for now >> $ git tag -l -- will list all the tags available >> -$ git checkout -b 1.6.0 tags/v1.6.0r2 >> +$ git checkout -b 1.7.1 tags/v1.7.1 >> # 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, >> @@ -27,7 +27,7 @@ $ git checkout -b 1.6.0 tags/v1.6.0r2 >> $ export RTE_SDK=<dpdk-dir> >> # For example >> $ export RTE_SDK=/root/dpdk >> -$ export RTE_TARGET=x86_64-default-linuxapp-gcc >> +$ export RTE_TARGET=x86_64-native-linuxapp-gcc >> # RTE_TARGET is the configuration used while building DPDK >> >> $ cd <odp-dir> >> @@ -48,11 +48,12 @@ How to setup and compile DPDK: >> $ cd <dpdk-dir> >> >> # This has to be done only once. >> -$ 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" >> - >> +$ make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc >> +# set CONFIG_RTE_BUILD_COMBINE_LIBS=y and CONFIG_RTE_BUILD_SHARED_LIB=y >> in >> +# ./x86_64-native-linuxapp-gcc/.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-native-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 >> diff --git a/platform/linux-dpdk/odp_buffer_pool.c >> b/platform/linux-dpdk/odp_buffer_pool.c >> index 8325b9e..ca25ace 100644 >> --- a/platform/linux-dpdk/odp_buffer_pool.c >> +++ b/platform/linux-dpdk/odp_buffer_pool.c >> @@ -282,5 +282,5 @@ void odp_buffer_free(odp_buffer_t buf) >> >> void odp_buffer_pool_print(odp_buffer_pool_t pool_id) >> { >> - rte_mempool_dump((const struct rte_mempool *)pool_id); >> + rte_mempool_dump(stdout, (const struct rte_mempool *)pool_id); >> } >> diff --git a/platform/linux-dpdk/odp_init.c b/platform/linux-dpdk/odp_ >> init.c >> index 404e616..fa10022 100644 >> --- a/platform/linux-dpdk/odp_init.c >> +++ b/platform/linux-dpdk/odp_init.c >> @@ -37,11 +37,6 @@ int odp_init_dpdk(void) >> return -1; >> } >> >> - if (rte_pmd_init_all() < 0) { >> - ODP_ERR("Cannot init pmd\n"); >> - return -1; >> - } >> - >> if (rte_eal_pci_probe() < 0) { >> ODP_ERR("Cannot probe PCI\n"); >> return -1; >> diff --git a/platform/linux-dpdk/odp_packet.c b/platform/linux-dpdk/odp_ >> packet.c >> index 7b6b082..beb69b2 100644 >> --- a/platform/linux-dpdk/odp_packet.c >> +++ b/platform/linux-dpdk/odp_packet.c >> @@ -367,7 +367,7 @@ void odp_packet_print(odp_packet_t pkt) >> str[len] = '\0'; >> >> printf("\n%s\n", str); >> - rte_pktmbuf_dump(&hdr->buf_hdr.mb, 32); >> + rte_pktmbuf_dump(stdout, &hdr->buf_hdr.mb, 32); >> >> p = odp_packet_start(pkt); >> printf("00000000: %02X %02X %02X %02X %02X %02X %02X %02X\n", >> >>
diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am index 686df6a..db11e0a 100644 --- a/platform/linux-dpdk/Makefile.am +++ b/platform/linux-dpdk/Makefile.am @@ -18,7 +18,7 @@ AM_CFLAGS += -I$(top_srcdir)/platform/linux-generic/include AM_CFLAGS += -I$(top_srcdir)/platform/linux-generic/include/api AM_CFLAGS += -I$(top_srcdir)/helper/include -DPDK_LIBS="-lintel_dpdk -ldl" +DPDK_LIBS="-lintel_dpdk -ldl -lm" LIBS += $(DPDK_LIBS) include_HEADERS = \ diff --git a/platform/linux-dpdk/Makefile.inc b/platform/linux-dpdk/Makefile.inc index e69de29..f681940 100644 --- a/platform/linux-dpdk/Makefile.inc +++ b/platform/linux-dpdk/Makefile.inc @@ -0,0 +1 @@ +AM_LDFLAGS += -R$(SDK_INSTALL_PATH)/lib diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README index 0f2210b..85ff112 100644 --- a/platform/linux-dpdk/README +++ b/platform/linux-dpdk/README @@ -7,15 +7,15 @@ ODP-DPDK: --------- This effort is to port ODP on top of DPDK and use DPDK as the accelerator for all intel NIC's. Pre-requisite is DPDK should be cloned and -compiled. DPDK and ODP was compiled and tested on Ubuntu 14.04 +compiled. DPDK and ODP was compiled and tested on Ubuntu 14.04 LTS 3.13.0-29-generic kernel. # To Clone DPDK $ git clone http://92.243.14.124/git/dpdk ./<dpdk-dir> -# we support only 1.6.0r2 of DPDK for now +# we support only 1.7.1 of DPDK for now $ git tag -l -- will list all the tags available -$ git checkout -b 1.6.0 tags/v1.6.0r2 +$ git checkout -b 1.7.1 tags/v1.7.1 # 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, @@ -27,7 +27,7 @@ $ git checkout -b 1.6.0 tags/v1.6.0r2 $ export RTE_SDK=<dpdk-dir> # For example $ export RTE_SDK=/root/dpdk -$ export RTE_TARGET=x86_64-default-linuxapp-gcc +$ export RTE_TARGET=x86_64-native-linuxapp-gcc # RTE_TARGET is the configuration used while building DPDK $ cd <odp-dir> @@ -48,11 +48,12 @@ How to setup and compile DPDK: $ cd <dpdk-dir> # This has to be done only once. -$ 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" - +$ make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc +# set CONFIG_RTE_BUILD_COMBINE_LIBS=y and CONFIG_RTE_BUILD_SHARED_LIB=y in +# ./x86_64-native-linuxapp-gcc/.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-native-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 diff --git a/platform/linux-dpdk/odp_buffer_pool.c b/platform/linux-dpdk/odp_buffer_pool.c index 8325b9e..ca25ace 100644 --- a/platform/linux-dpdk/odp_buffer_pool.c +++ b/platform/linux-dpdk/odp_buffer_pool.c @@ -282,5 +282,5 @@ void odp_buffer_free(odp_buffer_t buf) void odp_buffer_pool_print(odp_buffer_pool_t pool_id) { - rte_mempool_dump((const struct rte_mempool *)pool_id); + rte_mempool_dump(stdout, (const struct rte_mempool *)pool_id); } diff --git a/platform/linux-dpdk/odp_init.c b/platform/linux-dpdk/odp_init.c index 404e616..fa10022 100644 --- a/platform/linux-dpdk/odp_init.c +++ b/platform/linux-dpdk/odp_init.c @@ -37,11 +37,6 @@ int odp_init_dpdk(void) return -1; } - if (rte_pmd_init_all() < 0) { - ODP_ERR("Cannot init pmd\n"); - return -1; - } - if (rte_eal_pci_probe() < 0) { ODP_ERR("Cannot probe PCI\n"); return -1; diff --git a/platform/linux-dpdk/odp_packet.c b/platform/linux-dpdk/odp_packet.c index 7b6b082..beb69b2 100644 --- a/platform/linux-dpdk/odp_packet.c +++ b/platform/linux-dpdk/odp_packet.c @@ -367,7 +367,7 @@ void odp_packet_print(odp_packet_t pkt) str[len] = '\0'; printf("\n%s\n", str); - rte_pktmbuf_dump(&hdr->buf_hdr.mb, 32); + rte_pktmbuf_dump(stdout, &hdr->buf_hdr.mb, 32); p = odp_packet_start(pkt); printf("00000000: %02X %02X %02X %02X %02X %02X %02X %02X\n",