[lng-odp] example:ipsec: query regarding ESP policy configuration

2015-06-25 Thread Agarwal Nikhil Agarwal
Hi All, Is there any way to configure IPSEC application so that both encryption and authentication is catered in esp policy only? Regards Nikhil ___ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp

[lng-odp] odp_timer_disarm_all can't find in installed dir

2015-06-25 Thread Mo Jia
In the odp-dpdk readme , it says using 1.7.1 However, make with error like this: In file included from ../../platform/linux-generic/include/odp/debug.h:28:0, from ../linux-generic/odp_crypto.c:12: ../../include/odp/api/debug.h:48:40: error: static assertion failed: ERROR:

Re: [lng-odp] odp_timer_disarm_all can't find in installed dir

2015-06-25 Thread Mo Jia
sorry about the title of this question. I forget change the title before send it. 2015-06-26 12:43 GMT+08:00 Mo Jia life.130...@gmail.com: In the odp-dpdk readme , it says using 1.7.1 However, make with error like this: In file included from

Re: [lng-odp] [PATCH 0/5] queue tests moved to platform side

2015-06-25 Thread Christophe Milard
forgot to mention...To be installed on top of validation: init tests moved to platform side On 25 June 2015 at 12:50, Christophe Milard christophe.mil...@linaro.org wrote: Queue tests now go through the same modification as pktio, and gets finally called from the platform side. Christophe

[lng-odp] [PATCH 4/5] validation: creating own dir and lib for queue

2015-06-25 Thread Christophe Milard
Module queue now gets its own directory and create its own lib (currentely only containing its executable) Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- configure.ac | 1 + test/validation/.gitignore | 1 -

[lng-odp] [PATCH 2/5] validation: renaming in odp_queue.c

2015-06-25 Thread Christophe Milard
Renaming of things which may be, one day, exported in a lib. This renaming is important, as it creates consistency between test symbols, which is needed if things get eventually exported in the lib. Also, tests are often created from other tests: Fixing the first exemples will help geting future

[lng-odp] [PATCH 5/5] validation: call to queue_main from platform

2015-06-25 Thread Christophe Milard
queue_main is now ran from the platform side. As queue tests do not have any platform dependency, the call to the platform agnostic tests is performed directly in the Makefele.am (TESTS). Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- platform/linux-generic/test/Makefile.am |

[lng-odp] [API-NEXT PATCH 3/6] api: pool: add odp_pool_param_init prototype

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- include/odp/api/pool.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index b95f40d..dc94678 100644 --- a/include/odp/api/pool.h +++ b/include/odp/api/pool.h @@ -134,6 +134,15

[lng-odp] [API-NEXT PATCH 4/6] linux-generic: pool: add odp_pool_param_init implementation

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- platform/linux-generic/include/odp/plat/pool_types.h | 9 + 1 file changed, 9 insertions(+) diff --git a/platform/linux-generic/include/odp/plat/pool_types.h b/platform/linux-generic/include/odp/plat/pool_types.h index

[lng-odp] [API-NEXT PATCH 5/6] examples: use new odp_pool_param_init routine

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- example/classifier/odp_classifier.c | 2 +- example/generator/odp_generator.c | 4 ++-- example/ipsec/odp_ipsec.c | 4 ++-- example/packet/odp_pktio.c | 2 +- example/timer/odp_timer_test.c | 1 + 5 files

[lng-odp] [RFC PATCH 1/2] linux-generic: classification: add odp_cls_context_t type definitions

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- platform/linux-generic/include/odp/plat/classification_types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/linux-generic/include/odp/plat/classification_types.h

[lng-odp] [RFC PATCH 0/2] Add stateful classification context

2015-06-25 Thread Bill Fischofer
This RFC adds routines that permit classification rules to be manipulated in a stateful manner. The odp_pktio_pmr_cos() routine is intended to be deprecated and in its place the new odp_pktio_cls_context_swap() routine is to be used instead. The odp_cls_context_t type represents a classification

[lng-odp] [API-NEXT PATCH 6/6] performance: use odp_pool_param_init routine

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- test/performance/odp_l2fwd.c | 2 +- test/performance/odp_pktio_perf.c | 4 ++-- test/performance/odp_scheduling.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/performance/odp_l2fwd.c

[lng-odp] [API-NEXT PATCH 2/6] api: pool: split odp_pool_params to separate include file

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- include/odp/api/pool.h | 57 -- include/odp/api/pool_param.h | 95 2 files changed, 95 insertions(+), 57 deletions(-) create mode 100644

[lng-odp] [API-NEXT PATCH 1/6] linux-generic: event: convert event types to typedef enum

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- platform/linux-generic/include/odp/plat/event_types.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/platform/linux-generic/include/odp/plat/event_types.h

Re: [lng-odp] api changelog

2015-06-25 Thread Bill Fischofer
Yes, see debian/changelog in the repo. On Thu, Jun 25, 2015 at 1:23 AM, Mo Jia life.130...@gmail.com wrote: Do we have some api change txt to describe the api change from one version to another? ___ lng-odp mailing list lng-odp@lists.linaro.org

Re: [lng-odp] Classification API clarity

2015-06-25 Thread Ola Liljedahl
On 25 June 2015 at 11:48, Ivan Khoronzhuk ivan.khoronz...@linaro.org wrote: On 24.06.15 19:57, Bala Manoharan wrote: Hi Ivan, Pls see my comments inline. On 24 June 2015 at 09:13, Ivan Khoronzhuk ivan.khoronz...@linaro.org mailto:ivan.khoronz...@linaro.org wrote: Guys, sorry I

[lng-odp] [PATCHv2] linux-generic: buffer: reduce field size and reorder for better packing

2015-06-25 Thread Nicolas Morey-Chaisemartin
odp_buffer_hdr_t was: /* size: 136, cachelines: 3, members: 15 */ /* sum members: 124, holes: 3, sum holes: 12 */ and is now: /* size: 120, cachelines: 2, members: 15 */ /* sum members: 116, holes: 1, sum holes: 4 */ Signed-off-by: Nicolas Morey-Chaisemartin

[lng-odp] [PATCH 3/5] validation: cosmetic change in odp_queue.c

2015-06-25 Thread Christophe Milard
So that check-patch does not yell too much in next move. 2 warnings requiring extra blank lines are left. As the original writer of this code, I am not sure these would increase redibility... Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- test/validation/odp_queue.c | 3 +-- 1

[lng-odp] [PATCH 1/5] validation: own main in odp_queue.c

2015-06-25 Thread Christophe Milard
Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- test/validation/Makefile.am | 2 ++ test/validation/odp_queue.c | 15 +-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index a4eafea..1c6c10d

[lng-odp] [PATCH 0/5] queue tests moved to platform side

2015-06-25 Thread Christophe Milard
Queue tests now go through the same modification as pktio, and gets finally called from the platform side. Christophe Milard (5): validation: own main in odp_queue.c validation: renaming in odp_queue.c validation: cosmetic change in odp_queue.c validation: creating own dir and lib for

Re: [lng-odp] Classification API clarity

2015-06-25 Thread Ivan Khoronzhuk
On 24.06.15 20:09, Bill Fischofer wrote: Answers inline On Wed, Jun 24, 2015 at 11:13 AM, Ivan Khoronzhuk ivan.khoronz...@linaro.org mailto:ivan.khoronz...@linaro.org wrote: Guys, sorry I didn't ask the following questions during the ODP meeting. I had an issue with my microphone and

Re: [lng-odp] [PATCH] validation: pktio: remove linux-generic internal header file from validation test

2015-06-25 Thread Maxim Uvarov
Merged, Maxim. On 06/16/15 18:35, Jerin Jacob wrote: Signed-off-by: Jerin Jacob jerin.ja...@caviumnetworks.com --- test/validation/pktio/pktio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/test/validation/pktio/pktio.c b/test/validation/pktio/pktio.c index 8cfa269..5911ca7 100644 ---

Re: [lng-odp] [PATCHv2] linux-generic: buffer: reduce field size and reorder for better packing

2015-06-25 Thread Ola Liljedahl
On 25 June 2015 at 15:01, Nicolas Morey-Chaisemartin nmo...@kalray.eu wrote: odp_buffer_hdr_t was: /* size: 136, cachelines: 3, members: 15 */ /* sum members: 124, holes: 3, sum holes: 12 */ and is now: /* size: 120, cachelines: 2, members: 15 */ /* sum

[lng-odp] [RFC PATCH 2/2] api: classification: add odp_cls_context routines for stateful classification

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- include/odp/api/classification.h | 87 +++- 1 file changed, 86 insertions(+), 1 deletion(-) diff --git a/include/odp/api/classification.h b/include/odp/api/classification.h index f597b26..3f7b1b7

Re: [lng-odp] [PATCH 2/2] validation: timer: introduce CONFIG_MIN_TICK option in timer test case

2015-06-25 Thread Jerin Jacob
On Wed, Jun 24, 2015 at 01:34:07PM +0200, Ola Liljedahl wrote: On 10 June 2015 at 16:08, Jerin Jacob jerin.ja...@caviumnetworks.com wrote: This option is to specify minimum number ticks (delta between future tick and current tick) required to successfully reset/set the timer. some

Re: [lng-odp] Classification API clarity

2015-06-25 Thread Bill Fischofer
I just posted an RFC for the proposed stateful additions to the classification APIs. Please review it to see if it addresses some of your concerns. Further answers inline. On Thu, Jun 25, 2015 at 8:35 AM, Ivan Khoronzhuk ivan.khoronz...@linaro.org wrote: On 24.06.15 20:09, Bill Fischofer

[lng-odp] [PATCH 1/4] validation: own main in odp_pool.c

2015-06-25 Thread Christophe Milard
Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- test/validation/Makefile.am | 2 ++ test/validation/odp_pool.c | 15 +-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index f7b35a9..b0e577c

[lng-odp] [PATCHv2 3/4] validation: creating own dir and lib for pool

2015-06-25 Thread Christophe Milard
Module poll now gets its own directory and create its own lib (currentely only containing its executable) Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- configure.ac| 1 + test/validation/.gitignore | 1 -

[lng-odp] [PATCH 4/4] validation: call to pool_main from platform

2015-06-25 Thread Christophe Milard
pool_main is now ran from the platform side. As pool tests do not have any platform dependency, the call to the platform agnostic tests is performed directly in the Makefele.am (TESTS). Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- platform/linux-generic/test/Makefile.am | 1

[lng-odp] [PATCHv2 2/4] validation: renaming in odp_pool.c

2015-06-25 Thread Christophe Milard
Renaming of things which may be, one day, exported in a lib. This renaming is important, as it creates consistency between test symbols, which is needed if things get eventually exported in the lib. Also, tests are often created from other tests: Fixing the first exemples will help geting future

[lng-odp] [PATCH 0/4] pool tests moved to platform side

2015-06-25 Thread Christophe Milard
Pool tests now go through the same modification as pktio, and gets finally called from the platform side. To be applied on top of validation: queue tests moved to platform side Note: Pool is kept as own module as Petri's patch on API-NEXT (reviewed but not yet applied) suggests. Christophe Milard

[lng-odp] [PATCH 2/4] validation: renaming in odp_pool.c

2015-06-25 Thread Christophe Milard
Renaming of things which may be, one day, exported in a lib. This renaming is important, as it creates consistency between test symbols, which is needed if things get eventually exported in the lib. Also, tests are often created from other tests: Fixing the first exemples will help geting future

[lng-odp] [PATCH 3/4] validation: creating own dir and lib for pool

2015-06-25 Thread Christophe Milard
Module poll now gets its own directory and create its own lib (currentely only containing its executable) Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- configure.ac| 1 + test/validation/.gitignore | 1 -

[lng-odp] [PATCHv2 1/4] validation: own main in odp_pool.c

2015-06-25 Thread Christophe Milard
Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- test/validation/Makefile.am | 2 ++ test/validation/odp_pool.c | 15 +-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/validation/Makefile.am b/test/validation/Makefile.am index f7b35a9..b0e577c

[lng-odp] [PATCHv2 0/4] pool tests moved to platform side

2015-06-25 Thread Christophe Milard
since v1: added .gitignore Pool tests now go through the same modification as pktio, and gets finally called from the platform side. To be applied on top of validation: queue tests moved to platform side Note: Pool is kept as own module as Petri's patch on API-NEXT (reviewed but not yet applied)

[lng-odp] [PATCHv2 4/4] validation: call to pool_main from platform

2015-06-25 Thread Christophe Milard
pool_main is now ran from the platform side. As pool tests do not have any platform dependency, the call to the platform agnostic tests is performed directly in the Makefele.am (TESTS). Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- platform/linux-generic/test/Makefile.am | 1

Re: [lng-odp] [RFC PATCH 0/2] Add stateful classification context

2015-06-25 Thread Bill Fischofer
The purpose of the RFC is to continue the discussion from last week on this topic, so suggestions for improvement are most welcome. The intent here was simply to capture the gist of what we were talking about last week during the ODP Design Sprint. The intent of these structures is to separate

Re: [lng-odp] [API-NEXT PATCH 3/6] api: pool: add odp_pool_param_init prototype

2015-06-25 Thread Bill Fischofer
This was one of the things we discussed during last week's ODP Design Sprint. The issue is that a number of APIs take parameter structures as arguments and the question is how are these structs to be initialized in a portable manner? Today the various ODP examples do this via

Re: [lng-odp] [RFC PATCH 0/2] Add stateful classification context

2015-06-25 Thread Ivan Khoronzhuk
Hi Bill, On 25.06.15 16:52, Bill Fischofer wrote: This RFC adds routines that permit classification rules to be manipulated in a stateful manner. The odp_pktio_pmr_cos() routine is intended to be deprecated and in its place the new odp_pktio_cls_context_swap() routine is to be used instead.

Re: [lng-odp] Classification API clarity

2015-06-25 Thread Bala Manoharan
On 25 June 2015 at 02:48, Ivan Khoronzhuk ivan.khoronz...@linaro.org wrote: On 24.06.15 19:57, Bala Manoharan wrote: Hi Ivan, Pls see my comments inline. On 24 June 2015 at 09:13, Ivan Khoronzhuk ivan.khoronz...@linaro.org mailto:ivan.khoronz...@linaro.org wrote: Guys, sorry I

Re: [lng-odp] [API-NEXT PATCH 3/6] api: pool: add odp_pool_param_init prototype

2015-06-25 Thread Ivan Khoronzhuk
Thanks for clarification. On 25.06.15 20:12, Bill Fischofer wrote: This was one of the things we discussed during last week's ODP Design Sprint. The issue is that a number of APIs take parameter structures as arguments and the question is how are these structs to be initialized in a portable

Re: [lng-odp] [API-NEXT PATCH 3/6] api: pool: add odp_pool_param_init prototype

2015-06-25 Thread Ivan Khoronzhuk
+ lng-odp. Unintentionally removed On 25.06.15 20:06, Ivan Khoronzhuk wrote: Hi Bill, On 25.06.15 15:09, Bill Fischofer wrote: Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- include/odp/api/pool.h | 9 + 1 file changed, 9 insertions(+) diff --git

[lng-odp] [PATCH 2/2] validation: packet: add segmented packet segment tests

2015-06-25 Thread Bill Fischofer
Signed-off-by: Bill Fischofer bill.fischo...@linaro.org Extend segment tests to catch Bug https://bugs.linaro.org/show_bug.cgi?id=1661 --- test/validation/odp_packet.c | 61 ++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git

[lng-odp] [Bug 1661] Invalid data in segmented packet when copying data with odp_packet_copydata_in()

2015-06-25 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=1661 Bill Fischofer bill.fischo...@linaro.org changed: What|Removed |Added Ever confirmed|0 |1

[lng-odp] [PATCH 1/2] linux-generic: buffers: correct segment length calculation for packets

2015-06-25 Thread Bill Fischofer
Fix for Bug https://bugs.linaro.org/show_bug.cgi?id=1661 Signed-off-by: Bill Fischofer bill.fischo...@linaro.org --- platform/linux-generic/include/odp_buffer_inlines.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/include/odp_buffer_inlines.h

Re: [lng-odp] [API-NEXT PATCH] api: doc: doxygen grouping clean up

2015-06-25 Thread Savolainen, Petri (Nokia - FI/Espoo)
Ping. Reviewed already but not merged yet? Yes, I think other documentation (testing/bugzilla) needs to follow the better definitions. Anyway, I think API documentation has highest priority - it has to be clear and logical. Test/bug modules may follow with a delay and are not so critical to be

[lng-odp] api changelog

2015-06-25 Thread Mo Jia
Do we have some api change txt to describe the api change from one version to another? ___ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp

[lng-odp] [Bug 1661] Invalid data in segmented packet when copying data with odp_packet_copydata_in()

2015-06-25 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=1661 --- Comment #3 from Andras Berger andras.ber...@nokia.com --- Created attachment 341 -- https://bugs.linaro.org/attachment.cgi?id=341action=edit More detailed example code -- You are receiving this mail because: You are on the CC list for the

[lng-odp] [Bug 1661] Invalid data in segmented packet when copying data with odp_packet_copydata_in()

2015-06-25 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=1661 --- Comment #2 from Andras Berger andras.ber...@nokia.com --- Of course. I have attached a new code snippet which contains everything (pool packet creation, source data, etc...). pkt1_full is just a byte array (a random packet exported from

[lng-odp] [PATCH 3/3] linux-generic: sysinfo: add API to get current CPU frequency

2015-06-25 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@linaro.org This patch add API to return the current frequency of the CPU on which the thread is running. Only x86 platform is implemented, others are to be done. Signed-off-by: Hongbo Zhang hongbo.zh...@linaro.org --- include/odp/api/system_info.h|

[lng-odp] [PATCH 1/3] linux-generic: sysinfo: make cpu_hz and model_str per-CPU data

2015-06-25 Thread hongbo . zhang
From: Hongbo Zhang hongbo.zh...@linaro.org For AMP system such as ARM big.LITTLE, cores are heterogeneous, so cpu_hz and model_str should be different too, so this patch changes variable cpu_hz and model_str to data array to contain data for each different core, while for the common SMP system,

[lng-odp] [PATCH 2/3] linux-generic: sysinfo: make cpu_hz stand for max CPU frequency

2015-06-25 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@linaro.org In the previous x86 platform code, the variable is acquired from segment cpu MHz of /proc/cpuinfo, this is the current CPU frequency when acquired, and it may be scaled from time to time. But most of the use cases when odp_sys_cpu_hz() is called, users

[lng-odp] [PATCH 0/3] linux-generic: sysinfo: CPU frequency API clean up

2015-06-25 Thread hongbo.zhang
From: Hongbo Zhang hongbo.zh...@linaro.org The current API of getting CPU frequency is really ambiguous. CPU has its max frequency, and if enabled, the current frequency may be scaled from time to time, what's more, on some AMP platforms, cores are heterogenous, they have different max and

Re: [lng-odp] Classification API clarity

2015-06-25 Thread Ivan Khoronzhuk
On 24.06.15 19:57, Bala Manoharan wrote: Hi Ivan, Pls see my comments inline. On 24 June 2015 at 09:13, Ivan Khoronzhuk ivan.khoronz...@linaro.org mailto:ivan.khoronz...@linaro.org wrote: Guys, sorry I didn't ask the following questions during the ODP meeting. I had an issue with my