Re: [lng-odp] [PATCH v3 11/12] linux-generic: internal odp_cpu_cycles()

2016-07-26 Thread Bala Manoharan
On 26 July 2016 at 23:09, Brian Brooks wrote: > On 07/26 22:38:20, Bala Manoharan wrote: >> On 26 July 2016 at 22:26, Brian Brooks wrote: >> > On 07/26 10:44:17, Maxim Uvarov wrote: >> >> On 07/26/16 05:56, Brian Brooks wrote: >> >> > --- a/platform/linux-generic/arch/mips64/cpu_arch.h >> >> > ++

Re: [lng-odp] about adding termination path for l3fwd

2016-07-26 Thread forrest.shi
Hi Maxim, Many termination code fragments may like below. if (odp_pool_destroy(pool)) { LOG_ERR("Error: pool destroy\n"); exit(EXIT_FAILURE); } if (odp_term_local()) { LOG_ERR("Error: term local\n"); exit(EXI

[lng-odp] [MONARCH_LTS PATCH] changelog: update for v1.11.0.0

2016-07-26 Thread Bill Fischofer
Signed-off-by: Bill Fischofer --- CHANGELOG | 99 +++ 1 file changed, 99 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index d8230cd..5c028d0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,102 @@ +== OpenDataPlane (1.11.0.0) +ODP

[lng-odp] Using eventfd, timerfd and epoll to reduce overheads of service threads in linux-generic proposal

2016-07-26 Thread Geoffrey Blake
During last week's Wednesday ODP call the topic of service threads was brought up and there was an involved discussion on how to cope with the resource impact of having extra internal threads.Some work I am doing internally at ARM has been to research into the benefits of modifying ODP to be

Re: [lng-odp] [PATCH v3 00/12] arch improvements

2016-07-26 Thread Brian Brooks
On 07/26 10:13:09, Christophe Milard wrote: > I am confused about patch 3 which seems to remove arch specific for > arm and patch 6 which reintroduce it. Probably something I don't > understand... can you explain? Is this series working fine on ARM? Currently platform/linux-generic/arch/arm/ i

Re: [lng-odp] [PATCH v3 11/12] linux-generic: internal odp_cpu_cycles()

2016-07-26 Thread Brian Brooks
On 07/26 22:38:20, Bala Manoharan wrote: > On 26 July 2016 at 22:26, Brian Brooks wrote: > > On 07/26 10:44:17, Maxim Uvarov wrote: > >> On 07/26/16 05:56, Brian Brooks wrote: > >> > --- a/platform/linux-generic/arch/mips64/cpu_arch.h > >> > +++ b/platform/linux-generic/arch/mips64/cpu_arch.h > >>

Re: [lng-odp] [PATCH v3 06/12] linux-generic: add arch/arm

2016-07-26 Thread Brian Brooks
On 07/26 10:51:56, Maxim Uvarov wrote: > On 07/26/16 05:56, Brian Brooks wrote: > > Signed-off-by: Brian Brooks > > --- > > configure.ac | 12 > > ++-- > > platform/Makefile.inc| 6 +++--- > > pla

Re: [lng-odp] [PATCH v3 11/12] linux-generic: internal odp_cpu_cycles()

2016-07-26 Thread Bala Manoharan
On 26 July 2016 at 22:26, Brian Brooks wrote: > On 07/26 10:44:17, Maxim Uvarov wrote: >> On 07/26/16 05:56, Brian Brooks wrote: >> > --- a/platform/linux-generic/arch/mips64/cpu_arch.h >> > +++ b/platform/linux-generic/arch/mips64/cpu_arch.h >> > @@ -7,6 +7,8 @@ >> > #ifndef ODP_PLAT_CPU_ARCH_H

Re: [lng-odp] [PATCH v3 09/12] ppc: odp_cpu_cycles() for ppc

2016-07-26 Thread Brian Brooks
On 07/26 10:47:44, Maxim Uvarov wrote: > On 07/26/16 05:56, Brian Brooks wrote: > > Signed-off-by: Brian Brooks > > --- > > platform/linux-generic/arch/powerpc/odp_cpu_arch.c | 26 > > -- > > 1 file changed, 9 insertions(+), 17 deletions(-) > > > > diff --git a/platform/li

Re: [lng-odp] [PATCH v3 10/12] x86: odp_cpu_cycles for x86_64

2016-07-26 Thread Brian Brooks
On 07/26 10:46:08, Maxim Uvarov wrote: > On 07/26/16 05:56, Brian Brooks wrote: > > Signed-off-by: Brian Brooks > > --- > > platform/linux-generic/arch/x86/odp_cpu_arch.c | 19 ++- > > 1 file changed, 6 insertions(+), 13 deletions(-) > > > > diff --git a/platform/linux-generic/

Re: [lng-odp] [PATCH v3 11/12] linux-generic: internal odp_cpu_cycles()

2016-07-26 Thread Brian Brooks
On 07/26 10:44:17, Maxim Uvarov wrote: > On 07/26/16 05:56, Brian Brooks wrote: > > --- a/platform/linux-generic/arch/mips64/cpu_arch.h > > +++ b/platform/linux-generic/arch/mips64/cpu_arch.h > > @@ -7,6 +7,8 @@ > > #ifndef ODP_PLAT_CPU_ARCH_H_ > > #define ODP_PLAT_CPU_ARCH_H_ > > +#include >

[lng-odp] [PATCH v4] linux-generic: internal cache line size

2016-07-26 Thread Brian Brooks
Define the ODP API for cache line size to the cache line size defined in the internal architecture directories. Prefix internal cache line size identifier with '_odp'. Signed-off-by: Brian Brooks --- platform/linux-generic/arch/default/odp/api/cpu_arch.h | 10 +- platform/linux-generic/a

Re: [lng-odp] [PATCH v3 01/12] linux-generic: internal cache line size

2016-07-26 Thread Brian Brooks
On 07/26 13:49:15, Christophe Milard wrote: > On 26 July 2016 at 04:56, Brian Brooks wrote: > > Define the ODP API for cache line size to the cache line size defined > > in the internal architecture specific directories. Prefix internal > > cache line size identifier with '_'. > > > > Signed-off-b

Re: [lng-odp] [PATCH v3 01/12] linux-generic: internal cache line size

2016-07-26 Thread Brian Brooks
On 07/26 17:39:31, Maxim Uvarov wrote: > On 07/26/16 05:56, Brian Brooks wrote: > > #if defined __OCTEON__ > > #define ODP_CACHE_LINE_SIZE 128 > > prefix missing thanks for catching this. changed in v4 > > -#if defined __arm__ || defined __aarch64__ > > - > > -#define ODP_CACHE_LINE_SIZE 64

Re: [lng-odp] [PATCHv2] linux-gen: fix odp_pool_print

2016-07-26 Thread Maxim Uvarov
Merged, trivial change. Maxim. On 07/26/16 18:16, Maxim Uvarov wrote: commit: ec0d570 linux-gen: pool: optimize thread local buffer cache removed elements for prints but did not remove that from format string. Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_pool.c | 2 +- 1 fil

Re: [lng-odp] [Bug 2444] Can not use two PKTIOs with Traffic Manager

2016-07-26 Thread Oriol Arcas
Thanks for reporting the bug, Mike. -- Oriol Arcas Software Engineer Starflow Networks On Tue, Jul 26, 2016 at 5:44 PM, wrote: > https://bugs.linaro.org/show_bug.cgi?id=2444 > > --- Comment #1 from Mike Holmes --- > (In reply to Mike Holmes from comment #0) > > After some tests, I found the pr

[lng-odp] [Bug 2444] Can not use two PKTIOs with Traffic Manager

2016-07-26 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=2444 --- Comment #2 from Oriol Arcas --- Thanks for reporting the bug, Mike. -- Oriol Arcas Software Engineer Starflow Networks On Tue, Jul 26, 2016 at 5:44 PM, wrote: > https://bugs.linaro.org/show_bug.cgi?id=2444 > > --- Comment #1 from Mike Holmes -

[lng-odp] [Bug 2444] Can not use two PKTIOs with Traffic Manager

2016-07-26 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=2444 --- Comment #1 from Mike Holmes --- (In reply to Mike Holmes from comment #0) > After some tests, I found the problem in my setup. In my tests I have a > pair of interfaces, and I want to have traffic management for each one. > Since a odp_tm_t object

[lng-odp] [Bug 2444] New: Can not use two PKTIOs with Traffic Manager

2016-07-26 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=2444 Bug ID: 2444 Summary: Can not use two PKTIOs with Traffic Manager Product: OpenDataPlane - linux- generic reference Version: v1.10.1 Hardware: Other OS: Linux Status: UNC

Re: [lng-odp] [PATCH] linux-gen: fix odp_pool_print

2016-07-26 Thread Maxim Uvarov
On 07/26/16 18:09, Maxim Uvarov wrote: commit: 2d2e479 linux-gen: fix odp_pool_print will send v2, wrong reference... removed elements for prints but did not remove that from format string. Signed-off-by: Maxim Uvarov --- somehow it passed odp-check run, I think we were lucky with stack a

[lng-odp] [PATCHv2] linux-gen: fix odp_pool_print

2016-07-26 Thread Maxim Uvarov
commit: ec0d570 linux-gen: pool: optimize thread local buffer cache removed elements for prints but did not remove that from format string. Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic

[lng-odp] [PATCH] linux-gen: fix odp_pool_print

2016-07-26 Thread Maxim Uvarov
commit: 2d2e479 linux-gen: fix odp_pool_print removed elements for prints but did not remove that from format string. Signed-off-by: Maxim Uvarov --- somehow it passed odp-check run, I think we were lucky with stack allocation :) platform/linux-generic/odp_pool.c | 2 +- 1 file changed, 1 inse

Re: [lng-odp] [PATCH v3 01/12] linux-generic: internal cache line size

2016-07-26 Thread Maxim Uvarov
On 07/26/16 05:56, Brian Brooks wrote: Define the ODP API for cache line size to the cache line size defined in the internal architecture specific directories. Prefix internal cache line size identifier with '_'. Signed-off-by: Brian Brooks --- platform/linux-generic/arch/default/odp/api/cpu_

Re: [lng-odp] [PATCH] helper: test: fixed gitignore

2016-07-26 Thread Maxim Uvarov
merged to api-next branch with proper renaming. Maxim. On 07/22/16 16:19, Christophe Milard wrote: Obviously a miss from commit c4aefb88d31452b3add8cf16f9eef152525c3e93 Signed-off-by: Christophe Milard --- helper/test/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/helper/te

Re: [lng-odp] [PATCH v3 1/4] linux-gen: pool: optimize thread local buffer cache

2016-07-26 Thread Maxim Uvarov
Merged, Maxim. On 07/26/16 03:15, Bill Fischofer wrote: For this series: Reviewed-and-tested-by: Bill Fischofer On Fri, Jul 22, 2016 at 5:04 AM, Matias Elo wrote: Optimize local buffer cache performance which is critical to many use cases - including packet IO. Main parts of the optimizat

Re: [lng-odp] about adding termination path for l3fwd

2016-07-26 Thread Maxim Uvarov
On 26 July 2016 at 14:50, Mike Holmes wrote: > > > On 26 July 2016 at 03:32, Maxim Uvarov wrote: > >> On 07/26/16 09:35, Forrest Shi wrote: >> >>> Hi Mike, >>> >>> Why the cases under test/ are added termination path? >>> >> > I am not up to speed, but all applications should close down graceful

Re: [lng-odp] about adding termination path for l3fwd

2016-07-26 Thread Mike Holmes
On 26 July 2016 at 03:32, Maxim Uvarov wrote: > On 07/26/16 09:35, Forrest Shi wrote: > >> Hi Mike, >> >> Why the cases under test/ are added termination path? >> > I am not up to speed, but all applications should close down gracefully, is that what you mean ? > >> I'm wondering if it is neede

Re: [lng-odp] [PATCH v3 01/12] linux-generic: internal cache line size

2016-07-26 Thread Christophe Milard
On 26 July 2016 at 04:56, Brian Brooks wrote: > Define the ODP API for cache line size to the cache line size defined > in the internal architecture specific directories. Prefix internal > cache line size identifier with '_'. > > Signed-off-by: Brian Brooks The commit msg should say prefixed wit

Re: [lng-odp] [PATCH v3 00/12] arch improvements

2016-07-26 Thread Christophe Milard
Also got the following check-odp warnings: Using patch: 0008-arm-odp_cpu_cycles-for-aarch64.patch Trying to apply patch Patch applied WARNING: Missing a blank line after declarations #42: FILE: platform/linux-generic/arch/arm/odp_cpu_arch.c:21: + uint64_t vct; + __asm__ volatile("i

Re: [lng-odp] [PATCH v3 00/12] arch improvements

2016-07-26 Thread Christophe Milard
I am confused about patch 3 which seems to remove arch specific for arm and patch 6 which reintroduce it. Probably something I don't understand... can you explain? Is this series working fine on ARM? The API function: uint64_t odp_cpu_hz_current(int id ODP_UNUSED) Is still defined in the arch dire

Re: [lng-odp] [PATCH 1/2 v6] example: introducing l3fwd

2016-07-26 Thread forrest.shi
Hi Maxim, What's your idea bout below comment? Increment one value from number of threads might be not good thing to do due to 1) performance 2) atomic operations break. It's better if each thread has it's own counters and control threads summaries values.

Re: [lng-odp] [PATCH v3 02/12] linux-generic: internal odp_cpu_pause()

2016-07-26 Thread Maxim Uvarov
odp_cpu_pause() is api defined here: ./include/odp/api/spec/cpu.h Maxim. On 07/26/16 05:56, Brian Brooks wrote: Signed-off-by: Brian Brooks --- platform/linux-generic/arch/default/odp/api/cpu_arch.h | 2 +- platform/linux-generic/arch/mips64/odp/api/cpu_arch.h | 2 +- platform/linux-gene

Re: [lng-odp] [PATCH v3 06/12] linux-generic: add arch/arm

2016-07-26 Thread Maxim Uvarov
On 07/26/16 05:56, Brian Brooks wrote: Signed-off-by: Brian Brooks --- configure.ac | 12 ++-- platform/Makefile.inc| 6 +++--- platform/linux-generic/arch/{default => arm}/cpu_arch.h | 0

Re: [lng-odp] [PATCH v3 08/12] arm: odp_cpu_cycles() for aarch64

2016-07-26 Thread Maxim Uvarov
On 07/26/16 05:56, Brian Brooks wrote: Signed-off-by: Brian Brooks --- platform/linux-generic/arch/arm/odp_cpu_arch.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/platform/linux-generic/arch/arm/odp_cpu_arch.c b/platform/linux-generic/arch/ar

Re: [lng-odp] [PATCH v3 09/12] ppc: odp_cpu_cycles() for ppc

2016-07-26 Thread Maxim Uvarov
On 07/26/16 05:56, Brian Brooks wrote: Signed-off-by: Brian Brooks --- platform/linux-generic/arch/powerpc/odp_cpu_arch.c | 26 -- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/platform/linux-generic/arch/powerpc/odp_cpu_arch.c b/platform/linux-generic/ar

Re: [lng-odp] [PATCH v3 11/12] linux-generic: internal odp_cpu_cycles()

2016-07-26 Thread Maxim Uvarov
On 07/26/16 05:56, Brian Brooks wrote: --- a/platform/linux-generic/arch/mips64/cpu_arch.h +++ b/platform/linux-generic/arch/mips64/cpu_arch.h @@ -7,6 +7,8 @@ #ifndef ODP_PLAT_CPU_ARCH_H_ #define ODP_PLAT_CPU_ARCH_H_ +#include + #ifdef __cplusplus extern "C" { #endif @@ -17,6 +19,1

Re: [lng-odp] [PATCH v3 10/12] x86: odp_cpu_cycles for x86_64

2016-07-26 Thread Maxim Uvarov
On 07/26/16 05:56, Brian Brooks wrote: Signed-off-by: Brian Brooks --- platform/linux-generic/arch/x86/odp_cpu_arch.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/platform/linux-generic/arch/x86/odp_cpu_arch.c b/platform/linux-generic/arch/x86/odp_

Re: [lng-odp] [API-NEXT RFC PATCH] api: thread: add service thread types and related functions

2016-07-26 Thread Maxim Uvarov
control thread mask and worker thread mask should give a hint to implementation which cores might be used. How to spread load inside that 2 masks it's the deal of implementation. I think it's a little bit overload to create one more mask for service threads Maxim. On 07/26/16 07:50, Bala

Re: [lng-odp] [PATCH v3 4/4] performance: odp_scheduling: use multi alloc/free buffer functions

2016-07-26 Thread Maxim Uvarov
On 07/26/16 03:14, Bill Fischofer wrote: > #define MSG_POOL_SIZE (4 * 1024 * 1024) /**< Message pool size */ >-#define MAX_ALLOCS35/**< Alloc burst size */ >+#define MAX_ALLOCS32/**< Alloc burst size */ > Not a biggie, but it's not clear w

Re: [lng-odp] about adding termination path for l3fwd

2016-07-26 Thread Maxim Uvarov
On 07/26/16 09:35, Forrest Shi wrote: Hi Mike, Why the cases under test/ are added termination path? I'm wondering if it is needed in l3fwd. Maxim is talking if l3fwd should be under test/ not example/, what's your thought? Before sending new version, I want to include this change. thanks, F