Re: [lng-odp] [API-NEXT PATCH v4] timer: allow timer processing to run on worker cores

2017-06-27 Thread Kevin Wang
Hi Petri, Could you let me know which platform are you using and what's the command line of your l2_fwd test? ​Kevin​ 2017-06-26 20:34 GMT+08:00 Maxim Uvarov : > On 06/26/17 13:50, Savolainen, Petri (Nokia - FI/Espoo) wrote: > > When init params are set to defaults... > > > > odp_init_para

[lng-odp] [Linaro/odp] 0a3e5b: linux-generic: packet: add functions to optimize m...

2017-06-27 Thread GitHub
Branch: refs/heads/cloud-dev Home: https://github.com/Linaro/odp Commit: 0a3e5be140e77167173b9af4b72cdad8451aff71 https://github.com/Linaro/odp/commit/0a3e5be140e77167173b9af4b72cdad8451aff71 Author: Dmitry Eremin-Solenikov Date: 2017-05-23 (Tue, 23 May 2017) Changed paths:

[lng-odp] [PATCHv2] linux-gen: scheduler: modular scheduler interface

2017-06-27 Thread Joyce Kong
The modular scheduler interface in odp_schedule_if.h includes functions from pktio and queue. It needs to be cleaned out. The pktio/queue related functions should be moved to pktio/queue internal header file. Signed-off-by: Joyce Kong --- platform/linux-generic/include/odp_packet_io_internal.h |

Re: [lng-odp] [PATCH v1 2/2] travis: add cross-compilation checks

2017-06-27 Thread Dmitry Eremin-Solenikov
On 27.06.2017 18:51, Maxim Uvarov wrote: > On 06/27/17 16:17, Dmitry Eremin-Solenikov wrote: >> On 27.06.2017 16:15, Maxim Uvarov wrote: >>> On 06/27/17 16:00, Github ODP bot wrote: + - env echo -e 'Provides\x3a multiarch-support, debconf, debconf-2.0' > dummy >>

[lng-odp] [PATCH] build: fix 64-bit atomics detection

2017-06-27 Thread Brian Brooks
Use uint64_t instead of int type. This resolves ipfragreass build breakage with clang on 32-bit systems. Signed-off-by: Brian Brooks --- platform/linux-generic/m4/configure.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/m4/configure.m4 b/plat

Re: [lng-odp] [PATCH] linux-gen: time: use true hz

2017-06-27 Thread Brian Brooks
On 06/27 07:43:19, Savolainen, Petri (Nokia - FI/Espoo) wrote: > > > > -Original Message- > > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Brian > > Brooks > > Sent: Monday, June 26, 2017 9:21 PM > > To: lng-odp@lists.linaro.org > > Subject: [lng-odp] [PATCH] linux

Re: [lng-odp] [PATCH] build: fix 64-bit atomics detection

2017-06-27 Thread Maxim Uvarov
On 27 June 2017 at 22:58, Brian Brooks wrote: > Use uint64_t instead of int type. > > This resolves ipfragreass build breakage with clang on 32-bit systems. > > Change-Id: I23b9b6a46cbfaeff99116dac9c22e86629cbdf24 > looks ok for me, but please remove change-id and add sign-off. Maxim. > ---

[lng-odp] [PATCH] build: fix 64-bit atomics detection

2017-06-27 Thread Brian Brooks
Use uint64_t instead of int type. This resolves ipfragreass build breakage with clang on 32-bit systems. Change-Id: I23b9b6a46cbfaeff99116dac9c22e86629cbdf24 --- platform/linux-generic/m4/configure.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic

Re: [lng-odp] [PATCH] build: better atomics detection

2017-06-27 Thread Brian Brooks
On 06/27 07:51:30, Savolainen, Petri (Nokia - FI/Espoo) wrote: > > > > -Original Message- > > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Brian > > Brooks > > Sent: Monday, June 26, 2017 9:21 PM > > To: lng-odp@lists.linaro.org > > Subject: [lng-odp] [PATCH] build

[lng-odp] [Linaro/odp] c6a309: configure: remove dependency of autoconf-archive

2017-06-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/Linaro/odp Commit: c6a309f00f882fabe70fa535ebe8b765f6e9bd11 https://github.com/Linaro/odp/commit/c6a309f00f882fabe70fa535ebe8b765f6e9bd11 Author: Maxim Uvarov Date: 2017-06-27 (Tue, 27 Jun 2017) Changed paths: M .travis

Re: [lng-odp] [PATCH v1 2/2] travis: add cross-compilation checks

2017-06-27 Thread Maxim Uvarov
On 06/27/17 16:17, Dmitry Eremin-Solenikov wrote: > On 27.06.2017 16:15, Maxim Uvarov wrote: >> On 06/27/17 16:00, Github ODP bot wrote: >>> + - env echo -e 'Provides\x3a multiarch-support, >>> debconf, debconf-2.0' > dummy >> typo > > Where? > what is "\x3a" ? Maxim.

Re: [lng-odp] [API-NEXT PATCH v3] api: pool: additional packet length configuration

2017-06-27 Thread Bala Manoharan
Regards, Bala On 15 June 2017 at 19:51, Petri Savolainen wrote: > Added packet pool parameters for more fine grained pool > configuration. The basic usage of the parameters is not changed, > except that implementation may now round up 'num' by default. > Application can limit the round up with n

Re: [lng-odp] [API-NEXT, PATCH v4 1/1] comp: compression API

2017-06-27 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: shally verma [mailto:shallyvermacav...@gmail.com] > Sent: Tuesday, June 27, 2017 12:31 PM > To: Savolainen, Petri (Nokia - FI/Espoo) > Cc: lng-odp-forward ; Mahipal Challa > ; pathr...@cavium.com; Shally Verma > > Subject: Re: [lng-odp] [API-NEXT, PATCH v4 1

Re: [lng-odp] [PATCH v1 2/2] travis: add cross-compilation checks

2017-06-27 Thread Maxim Uvarov
On 06/27/17 16:18, Dmitry Eremin-Solenikov wrote: > On 27.06.2017 16:13, Maxim Uvarov wrote: >> On 06/27/17 16:00, Github ODP bot wrote: >>> -- ./bootstrap >>> -- ./configure --enable-debug --enable-automated --enable-basic >>> --enable-console --enable-examples --enable-test >>> +

[lng-odp] [API-NEXT PATCH 4/5] linux-gen: queue: combine queue interface functions

2017-06-27 Thread Petri Savolainen
Combine enqueue and dequeue function pointer set functions into pktin/pktout calls so that queue interface size gets smaller and code more readable. Also provide single call for TM. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_queue_if.h | 30 + platform

[lng-odp] [API-NEXT PATCH 2/5] linux-gen: pktio: clean up and avoid conversion

2017-06-27 Thread Petri Savolainen
Remove references to qentry as it's not visible in this file anymore. Avoid API handle to internal queue conversion on fast path (sched_cb_pktin_poll()). Signed-off-by: Petri Savolainen --- .../linux-generic/include/odp_packet_io_internal.h | 3 + platform/linux-generic/odp_packet_io.c

[lng-odp] [API-NEXT PATCH 3/5] linux-gen: pktio: remove unused header file

2017-06-27 Thread Petri Savolainen
odp_packet_io_queue.h is not needed anymore as the queue interface has replaced it. Signed-off-by: Petri Savolainen --- platform/linux-generic/Makefile.am | 1 - .../linux-generic/include/odp_packet_io_queue.h| 48 platform/linux-generic/odp_packet_io.c

[lng-odp] [API-NEXT PATCH 0/5] Queue interface clean up

2017-06-27 Thread Petri Savolainen
Clean up queue interface definitions and usage. Remove unneccesary conversions, accesses and functions. Remove unused header file. Don't use qentry as a variable name when type is queue_t. Don't let TM to change queue type, since current API specifies only plain and sched queues as queue types. P

[lng-odp] [API-NEXT PATCH 1/5] linux-gen: cls: avoid queue conversions

2017-06-27 Thread Petri Savolainen
Use internal queue type instead of API handle. This way per packet queue conversions are avoided. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_packet_internal.h | 3 ++- platform/linux-generic/include/odp_queue_if.h| 2 ++ platform/linux-generic/odp_classifica

[lng-odp] [API-NEXT PATCH 5/5] linux-gen: queue: remove type set from interface

2017-06-27 Thread Petri Savolainen
TM should not modify queue type, thus the interface function is not needed for that. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_queue_if.h | 2 -- platform/linux-generic/odp_queue.c| 8 +--- platform/linux-generic/odp_traffic_mngr.c | 4 3 fil

Re: [lng-odp] [PATCH v1 2/2] travis: add cross-compilation checks

2017-06-27 Thread Dmitry Eremin-Solenikov
On 27.06.2017 16:13, Maxim Uvarov wrote: > On 06/27/17 16:00, Github ODP bot wrote: >> -- ./bootstrap >> -- ./configure --enable-debug --enable-automated --enable-basic >> --enable-console --enable-examples --enable-test >> +- libtoolize --force --copy >> +- aclocal

Re: [lng-odp] [PATCH v1 2/2] travis: add cross-compilation checks

2017-06-27 Thread Dmitry Eremin-Solenikov
On 27.06.2017 16:15, Maxim Uvarov wrote: > On 06/27/17 16:00, Github ODP bot wrote: >> + - env echo -e 'Provides\x3a multiarch-support, >> debconf, debconf-2.0' > dummy > typo Where? -- With best wishes Dmitry

Re: [lng-odp] [PATCH v1 2/2] travis: add cross-compilation checks

2017-06-27 Thread Maxim Uvarov
On 06/27/17 16:00, Github ODP bot wrote: > + - env echo -e 'Provides\x3a multiarch-support, > debconf, debconf-2.0' > dummy typo

Re: [lng-odp] [PATCH v1 2/2] travis: add cross-compilation checks

2017-06-27 Thread Maxim Uvarov
On 06/27/17 16:00, Github ODP bot wrote: > -- ./bootstrap > -- ./configure --enable-debug --enable-automated --enable-basic > --enable-console --enable-examples --enable-test > +- libtoolize --force --copy > +- aclocal > +- autoheader > +- automake -

Re: [lng-odp] [PATCH v1 1/2] build: better atomics detection

2017-06-27 Thread Maxim Uvarov
On 06/27/17 16:00, Github ODP bot wrote: > From: Brian Brooks > > Do not optimize away the result of an atomic operation > during atomics detection in configure stage of build. > > This resolves ipfragreass build breakage with clang on > 32-bit systems. > > [DES: fix check to stop using inline

[lng-odp] [PATCH v1 2/2] travis: add cross-compilation checks

2017-06-27 Thread Github ODP bot
From: Dmitry Eremin-Solenikov Include setup to cross-compile ODP for ARM hard float, ARM64 and PowerPC targets. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 60 (lumag:cross) ** https://github.com/Linaro/odp/pull/60 ** Patch: https://github.com/Linaro/odp/pull

[lng-odp] [PATCH v1 1/2] build: better atomics detection

2017-06-27 Thread Github ODP bot
From: Brian Brooks Do not optimize away the result of an atomic operation during atomics detection in configure stage of build. This resolves ipfragreass build breakage with clang on 32-bit systems. [DES: fix check to stop using inline assembly] Signed-off-by: Brian Brooks Signed-off-by: Dmit

[lng-odp] [PATCH v1 0/2] Add cross compilation checks

2017-06-27 Thread Github ODP bot
Add cross compilation checks. Compile using gcc for ARM-HF, ARM64 and PowerPC. MIPS64 is left away, because Trusty doesn't provide necessary packets. github /** Email created from pull request 60 (lumag:cross) ** https://github.com/Linaro/odp/pull/60 ** P

Re: [lng-odp] [API-NEXT, PATCH v4 1/1] comp: compression API

2017-06-27 Thread shally verma
On Tue, Jun 27, 2017 at 2:51 PM, Savolainen, Petri (Nokia - FI/Espoo) wrote: >> > diff --git a/platform/linux-generic/include/odp/api/plat/event_types.h >> b/platform/linux-generic/include/odp/api/plat/event_types.h >> > index 0f51783..adf2c31 100644 >> > --- a/platform/linux-generic/include/odp/a

Re: [lng-odp] [API-NEXT, PATCH v4 1/1] comp: compression API

2017-06-27 Thread Savolainen, Petri (Nokia - FI/Espoo)
> > diff --git a/platform/linux-generic/include/odp/api/plat/event_types.h > b/platform/linux-generic/include/odp/api/plat/event_types.h > > index 0f51783..adf2c31 100644 > > --- a/platform/linux-generic/include/odp/api/plat/event_types.h > > +++ b/platform/linux-generic/include/odp/api/plat/event_

Re: [lng-odp] [API-NEXT, PATCH v4 1/1] comp: compression API

2017-06-27 Thread shally verma
Ping. Reminder to review. Thanks Shally On Tue, Jun 20, 2017 at 5:05 PM, Shally Verma wrote: > API patch to enable compression/decompression support in ODP > > Changes from RFC v3: > Added separate function for compression and decompression. > Added separate event ODP_EVENT_COMP_COMPL/ODP_EVENT_

[lng-odp] [RFC] ddf: example: build module with dpdk support

2017-06-27 Thread Bogdan Pricope
Signed-off-by: Bogdan Pricope --- example/ddf_app/odp_ddf_app.c| 14 +++- example/ddf_ifs/Makefile.am | 9 ++- example/ddf_ifs/ddf_ifs_enumr_dpdk.c | 126 ++- example/m4/configure.m4 | 2 + example/m4/example_dpdk.m4 |

[lng-odp] [RFC] ddf: examples: module with dpdk support

2017-06-27 Thread Bogdan Pricope
This RFC shows how to build a DDF module with DPDK support while application and odp have no DPDK support. Step 1: Run 'build-example-ddf-dpdk' script. e.g: $ ./scripts/build-example-ddf-dpdk This will: - clone dpdk - configure dpdk to build as shared libs - build dpdk - build odp with 'with-

Re: [lng-odp] [PATCH] build: better atomics detection

2017-06-27 Thread Maxim Uvarov
maybe return something like (prev & 0xff) ? On 27 June 2017 at 10:51, Savolainen, Petri (Nokia - FI/Espoo) < petri.savolai...@nokia.com> wrote: > > > > -Original Message- > > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of > Brian > > Brooks > > Sent: Monday, June 26,

[lng-odp] [Linaro/odp] c460b6: ddf: examples: add ddf module skeleton and ddf app...

2017-06-27 Thread GitHub
Branch: refs/heads/cloud-dev Home: https://github.com/Linaro/odp Commit: c460b6fbaeae6c60d75e8e5a60c34a6260b9e4fa https://github.com/Linaro/odp/commit/c460b6fbaeae6c60d75e8e5a60c34a6260b9e4fa Author: Bogdan Pricope Date: 2017-06-27 (Tue, 27 Jun 2017) Changed paths: M ex

[lng-odp] PKTIO statistics validation test

2017-06-27 Thread Liron Himi
Hi, I'm running 'pktio_test_statistics_counters' and it failed on 'in_octets' check. The root cause for the failure related to the FCS bytes. My counter adds those bytes whereas the validation test check for the original packet length. According to the API those counters should count the whole pa

Re: [lng-odp] [PATCH] build: better atomics detection

2017-06-27 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Brian > Brooks > Sent: Monday, June 26, 2017 9:21 PM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [PATCH] build: better atomics detection > > Do not optimize away the result of an atomic op

Re: [lng-odp] [PATCH] linux-gen: time: use true hz

2017-06-27 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Brian > Brooks > Sent: Monday, June 26, 2017 9:21 PM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [PATCH] linux-gen: time: use true hz > > Use true hz value instead of dividing by 10. > >

Re: [lng-odp] [PATCH] linux-gen: scheduler: modular scheduler interface

2017-06-27 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Joyce > Kong > Sent: Tuesday, June 27, 2017 5:29 AM > To: lng-odp@lists.linaro.org > Cc: Joyce Kong > Subject: [lng-odp] [PATCH] linux-gen: scheduler: modular scheduler > interface > > Signed-off