Re: [lng-odp] [PATCH] helper: add odp_chksum to .gitignore

2015-06-29 Thread Maxim Uvarov
Merged, Thanks, Maxim. On 06/24/15 20:15, Bill Fischofer wrote: On Tue, Jun 23, 2015 at 6:57 AM, Stuart Haslam stuart.has...@linaro.org mailto:stuart.has...@linaro.org wrote: Signed-off-by: Stuart Haslam stuart.has...@linaro.org mailto:stuart.has...@linaro.org Reviewed-by: Bill

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

2015-06-29 Thread Maxim Uvarov
Thanks, Petri, please review API change. Maxim. On 06/25/15 12:05, hongbo.zh...@freescale.com wrote: 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

Re: [lng-odp] [PATCH] configurable binaries extension

2015-06-29 Thread Maxim Uvarov
Anders, please take a look at this changes. Thanks, Maxim. On 06/22/15 13:06, Nicolas Morey-Chaisemartin wrote: Add $(EXEEXT) to all binary generated so platform can easily configure the binaries extension and use the LOG_COMPILER features of automake. This should have no visible effect unless

Re: [lng-odp] [PATCH] configurable binaries extension

2015-06-29 Thread Nicolas Morey-Chaisemartin
With the validation tests being moved, I don't think this on applies anymore. I have another on ready to submit if you are interested On 06/29/2015 03:03 PM, Maxim Uvarov wrote: Anders, please take a look at this changes. Thanks, Maxim. On 06/22/15 13:06, Nicolas Morey-Chaisemartin wrote:

[lng-odp] [PATCHv2 2/5] validation: renaming in odp_packet.c

2015-06-29 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] [PATCHv2 1/5] validation: own main in odp_packet.c

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

Re: [lng-odp] [PATCH v2] linux-generic: timer: set timer queue to ODP_QUEUE_INVALID on init

2015-06-29 Thread Maxim Uvarov
Please resend this patch in text format. Not in html. Use git format-patch command. Thank you, Maxim. On 06/24/15 19:40, Ola Liljedahl wrote: On 24 June 2015 at 18:36, Ivan Khoronzhuk ivan.khoronz...@linaro.org mailto:ivan.khoronz...@linaro.org wrote: The set_next_free() checks if timer

[lng-odp] [Bug 1632] validation: pktio test generates invalid UDP packets

2015-06-29 Thread bugzilla-daemon
https://bugs.linaro.org/show_bug.cgi?id=1632 --- Comment #2 from Stuart Haslam stuart.has...@linaro.org --- Patch posted, awaiting review - https://patches.opendataplane.org/patch/1848/ -- You are receiving this mail because: You are the assignee for the

[lng-odp] [PATCHv2 0/5] packet tests moved to platform side

2015-06-29 Thread Christophe Milard
since v1: use CU_ASSERT_PTR_NOT_NULL(x) to please check-patch Packet tests now go through the same modification as pktio, and gets finally called from the platform side. To be applied on top of validation: pool tests moved to platform side Christophe Milard (5): validation: own main in

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

2015-06-29 Thread Christophe Milard
Module packet 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 -

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

2015-06-29 Thread Maxim Uvarov
Merged! Thanks, Maxim. On 06/25/15 16:29, Ola Liljedahl wrote: On 25 June 2015 at 15:01, Nicolas Morey-Chaisemartin nmo...@kalray.eu mailto:nmo...@kalray.eu wrote: odp_buffer_hdr_t was: /* size: 136, cachelines: 3, members: 15 */ /* sum members: 124, holes: 3, sum

[lng-odp] [PATCHv2 5/5] validation: call to packet_main from platform

2015-06-29 Thread Christophe Milard
packet_main is now ran from the platform side. As packet 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] [PATCHv2 3/5] validation: cosmetic changes in odp_packet.c

2015-06-29 Thread Christophe Milard
To please check-patch as much as possible before the file gets moved (and rechecked by check-odp) Note: braces are required in if/then/else with CU_ASSERT macro. Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- test/validation/odp_packet.c | 48

Re: [lng-odp] [PATCH v2] validation: pktio: generate valid test packets

2015-06-29 Thread Maxim Uvarov
Merged, Thanks, Maxim. On 06/11/15 13:00, Stuart Haslam wrote: The test generates UDP packets with the source and destination port numbers set to 0 and source and destination IP addresses of 0.0.0.0, which is likely to cause them to be dropped and the test failing. Fix this by correctly

Re: [lng-odp] [PATCH] validation: new functions to register hooks

2015-06-29 Thread Stuart Haslam
On Wed, Jun 24, 2015 at 01:51:37PM +0200, Christophe Milard wrote: Two new functions are introduced in odp_cunit_common.c: odp_cunit_register_global_init() is to be used to register test executable init function (overloading the default ODP init performed). odp_cunit_register_global_term() is

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

2015-06-29 Thread Stuart Haslam
On Wed, Jun 24, 2015 at 06:51:30PM +0200, Christophe Milard wrote: Module init now create its own lib (currentely only containing its executables) Signed-off-by: Christophe Milard christophe.mil...@linaro.org --- configure.ac | 1 + test/validation/.gitignore

Re: [lng-odp] [PATCH 0/4] validation: init tests moved to platform side

2015-06-29 Thread Stuart Haslam
On Wed, Jun 24, 2015 at 06:51:27PM +0200, Christophe Milard wrote: To be applied on top of validation: tests for random moved to plt side and also once validation: new functions to register hooks is applied. init tests now go through the same modification as pktio, and gets finally called

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

2015-06-29 Thread Stuart Haslam
On Thu, Jun 25, 2015 at 12:50:29PM +0200, Christophe Milard wrote: 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:

Re: [lng-odp] [PATCH 1/5] validation: removed odp_buffer_pool_test.c

2015-06-29 Thread Stuart Haslam
On Fri, Jun 26, 2015 at 05:01:46PM +0200, Christophe Milard wrote: removed from directory buffer. The file is not compiled nor included. Looks like this was accidentally missing from; https://lists.linaro.org/pipermail/lng-odp/2015-February/009290.html As v1 of that patch did drop this

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

2015-06-29 Thread Christophe Milard
On 29 June 2015 at 12:22, Stuart Haslam stuart.has...@linaro.org wrote: On Wed, Jun 24, 2015 at 06:51:30PM +0200, Christophe Milard wrote: Module init now create its own lib (currentely only containing its executables) Signed-off-by: Christophe Milard christophe.mil...@linaro.org ---

Re: [lng-odp] [PATCH 3/5] validation: cosmetic changes in odp_packet.c

2015-06-29 Thread Christophe Milard
On 29 June 2015 at 12:25, Stuart Haslam stuart.has...@linaro.org wrote: On Fri, Jun 26, 2015 at 01:09:39PM +0200, Christophe Milard wrote: To please check-patch as much as possible before the file gets moved (and rechecked by check-odp) Note that CU_ASSERT (xxx != NULL) cannot be written

[lng-odp] [PATCHv2] validation: new functions to register hooks

2015-06-29 Thread Christophe Milard
Two new functions are introduced in odp_cunit_common.c: odp_cunit_register_global_init() is to be used to register test executable init function (overloading the default ODP init performed). odp_cunit_register_global_term() is to be used to register test executable terminason function (overloading

Re: [lng-odp] [PATCH] linux-generic: schedule: fix double free

2015-06-29 Thread Maxim Uvarov
Petri, please review that change. queue_destroy_finalize(qe) calls odp_buffer_free(buf) if queue is QUEUE_STATUS_DESTROYED. So that that case there will be double free of that buffer. Thanks, Maxim. On 06/22/15 11:19, Nicolas Morey-Chaisemartin wrote: Ping On 06/15/2015 03:30 PM,

Re: [lng-odp] [PATCH] validation: new functions to register hooks

2015-06-29 Thread Christophe Milard
On 29 June 2015 at 12:22, Stuart Haslam stuart.has...@linaro.org wrote: On Wed, Jun 24, 2015 at 01:51:37PM +0200, Christophe Milard wrote: Two new functions are introduced in odp_cunit_common.c: odp_cunit_register_global_init() is to be used to register test executable init function

Re: [lng-odp] [API-NEXT PATCH v3 3/9] packet_io: release unsent packets after odp_pktio_send()

2015-06-29 Thread Savolainen, Petri (Nokia - FI/Espoo)
-Original Message- From: ext Zoltan Kiss [mailto:zoltan.k...@linaro.org] Sent: Monday, June 22, 2015 7:53 PM To: Savolainen, Petri (Nokia - FI/Espoo); lng-odp@lists.linaro.org Subject: Re: [lng-odp] [API-NEXT PATCH v3 3/9] packet_io: release unsent packets after odp_pktio_send()

Re: [lng-odp] odp items for discussion

2015-06-29 Thread Bill Fischofer
This is timely. I'll add it to the agenda for tomorrow's ODP call. On Mon, Jun 29, 2015 at 9:43 AM, Radu-Andrei Bulie radu.bu...@freescale.com wrote: Hi, There are two items I would like to discuss: 1. I have sent an email regarding the schedule tests issues (this could be a

[lng-odp] [PATCHv2] configurable binaries extension

2015-06-29 Thread Nicolas Morey-Chaisemartin
Add $(EXEEXT) to all binary generated so platform can easily configure the binaries extension and use the LOG_COMPILER features of automake. This should have no visible effect unless EXEEXT is set by the configure Signed-off-by: Nicolas Morey-Chaisemartin nmo...@kalray.eu --- Updated to apply on

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

2015-06-29 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] odp items for discussion

2015-06-29 Thread Radu-Andrei Bulie
Hi, There are two items I would like to discuss: 1. I have sent an email regarding the schedule tests issues (this could be a general issue) To relieve from a search on the mailing list I will paste the content (and make a resumee): I have some observations regarding the odp_scheduler

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

2015-06-29 Thread Christophe Milard
Module random now gets its own directory and create its own lib (currentely only containing its executable) Signed-off-by: Christophe Milard christophe.mil...@linaro.org Reviewed-by: Stuart Haslam stuart.has...@linaro.org --- configure.ac | 1 +

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

2015-06-29 Thread Christophe Milard
random_main is now ran from the platform side. As random 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 Reviewed-by: Stuart Haslam

Re: [lng-odp] [PATCH v2] linux-generic: timer: set timer queue to ODP_QUEUE_INVALID on init

2015-06-29 Thread Maxim Uvarov
Applied. Looks like something wrong was with my set up. First time I saw ndsp and br in this email. Thanks Anders to double checking that patch can be applied! Maxim. On 06/24/15 19:40, Ola Liljedahl wrote: On 24 June 2015 at 18:36, Ivan Khoronzhuk ivan.khoronz...@linaro.org

Re: [lng-odp] [PATCH] configurable binaries extension

2015-06-29 Thread Anders Roxell
On 2015-06-29 15:11, Nicolas Morey-Chaisemartin wrote: With the validation tests being moved, I don't think this on applies anymore. I have another on ready to submit if you are interested I like your changes, please resend it. Cheers, Anders On 06/29/2015 03:03 PM, Maxim Uvarov wrote:

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

2015-06-29 Thread Christophe Milard
Signed-off-by: Christophe Milard christophe.mil...@linaro.org Reviewed-by: Stuart Haslam stuart.has...@linaro.org --- test/validation/Makefile.am | 2 ++ test/validation/odp_random.c | 15 +-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git

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

2015-06-29 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] [PATCHv2 5/5] validation: call to queue_main from platform

2015-06-29 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 Reviewed-by: Stuart Haslam

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

2015-06-29 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 Reviewed-by: Stuart Haslam

[lng-odp] [PATCHv2 0/4] validation: tests for random moved to plt side

2015-06-29 Thread Christophe Milard
since v1: removed a useless remaining definition from validation/Makefile.am To be applied on top of patch for system (moving time to module system called from plt side). Tests for random now go through the same modification as pktio, and gets finally called from the platform side. Christophe

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

2015-06-29 Thread Christophe Milard
since V1: rebased. To be applied on top of: validation: init tests moved to platform side 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

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

2015-06-29 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 Reviewed-by: Stuart Haslam stuart.has...@linaro.org --- configure.ac | 1 +

Re: [lng-odp] [PATCHv2] configurable binaries extension

2015-06-29 Thread Anders Roxell
On 2015-06-29 16:53, Nicolas Morey-Chaisemartin wrote: Add $(EXEEXT) to all binary generated so platform can easily configure the binaries extension and use the LOG_COMPILER features of automake. This should have no visible effect unless EXEEXT is set by the configure Signed-off-by: Nicolas

Re: [lng-odp] odp items for discussion

2015-06-29 Thread Nicolas Morey-Chaisemartin
We have the same kind of issue with our port. We don't want (more precisely cannot for the moment) more than a thread per core. The way we handled it is by tweaking the implementation of cpu_count and the default_mask to ignore the first core (which is running the main). It would make sense to

Re: [lng-odp] [PATCH] validation: scheduler run cpu_num - 1 worker threads

2015-06-29 Thread Nicolas Morey-Chaisemartin
I'm fine with this but why should it only be for this test and not all of them? On 06/29/2015 06:09 PM, Maxim Uvarov wrote: Use first cpu as control thread to run workers. And all other cpus for workers run with pthread_create. If needed to run something on current core it has to be run

Re: [lng-odp] odp items for discussion

2015-06-29 Thread Maxim Uvarov
Radu-Andrei, we also needed to limit number of workers for dpdk: https://lists.linaro.org/pipermail/lng-odp-dpdk/2015-June/000844.html I will send this patch to main mailing list. Maxim. On 06/29/15 17:44, Bill Fischofer wrote: This is timely. I'll add it to the agenda for tomorrow's ODP

Re: [lng-odp] [PATCHv2] configurable binaries extension

2015-06-29 Thread Maxim Uvarov
Merged, thanks, Maxim. On 06/29/15 18:52, Anders Roxell wrote: On 2015-06-29 16:53, Nicolas Morey-Chaisemartin wrote: Add $(EXEEXT) to all binary generated so platform can easily configure the binaries extension and use the LOG_COMPILER features of automake. This should have no visible effect

Re: [lng-odp] odp items for discussion

2015-06-29 Thread Maxim Uvarov
On 06/29/15 19:05, Nicolas Morey-Chaisemartin wrote: We have the same kind of issue with our port. We don't want (more precisely cannot for the moment) more than a thread per core. The way we handled it is by tweaking the implementation of cpu_count and the default_mask to ignore the first

[lng-odp] Next odp point release

2015-06-29 Thread Mike Holmes
As soon as we have Christophes test framework migration to platform calling of the tests in we should consider a point release. The rational is the need that the ODP-DPDK implementation has for this work. ODP-DPDK currently has a platform specific limitation when running make check vs running

Re: [lng-odp] [PATCH] validation: scheduler run cpu_num - 1 worker threads

2015-06-29 Thread Maxim Uvarov
On 06/29/15 19:32, Nicolas Morey-Chaisemartin wrote: I'm fine with this but why should it only be for this test and not all of them? Do you have that problem in others tests? Which one? Maxim. On 06/29/2015 06:09 PM, Maxim Uvarov wrote: Use first cpu as control thread to run workers. And

Re: [lng-odp] Next odp point release

2015-06-29 Thread Mike Holmes
On 29 June 2015 at 13:20, Maxim Uvarov maxim.uva...@linaro.org wrote: On 06/29/15 20:13, Mike Holmes wrote: As soon as we have Christophes test framework migration to platform calling of the tests in we should consider a point release. The rational is the need that the ODP-DPDK

Re: [lng-odp] [PATCH] checkpatch: ignore CamelCase on scanf SCNxxx

2015-06-29 Thread Maxim Uvarov
Merged, Thanks. Maxim. On 06/18/15 22:32, Bill Fischofer wrote: On Thu, Jun 18, 2015 at 11:59 AM, Benoît Ganne bga...@kalray.eu mailto:bga...@kalray.eu wrote: Signed-off-by: Benoît Ganne bga...@kalray.eu mailto:bga...@kalray.eu Reviewed-by: Bill Fischofer

Re: [lng-odp] Next odp point release

2015-06-29 Thread Maxim Uvarov
On 06/29/15 20:13, Mike Holmes wrote: As soon as we have Christophes test framework migration to platform calling of the tests in we should consider a point release. The rational is the need that the ODP-DPDK implementation has for this work. ODP-DPDK currently has a platform specific

Re: [lng-odp] [API-NEXT PATCH v3 8/9] queue: handle return value of odp_queue_enq()

2015-06-29 Thread Zoltan Kiss
Hi, So you say instead of returning I should use an ODP_ABORT()? Zoli On 09/06/15 14:46, Savolainen, Petri (Nokia - FI/Espoo) wrote: Although implementation (linux-generic) is using the API calls, it can do short cuts e.g. ensure that queue_enq will never fail (abort instead of fail) and

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

2015-06-29 Thread Mike Holmes
This touches include/odp/api so the subject must include API-NEXT On 25 June 2015 at 05:05, hongbo.zh...@freescale.com wrote: 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

Re: [lng-odp] Next odp point release

2015-06-29 Thread Bill Fischofer
Perhaps we can use the Tuesday ODP Jira planning meeting to also do a quick review of outstanding patches and their review status (similar to Thursday's bug meeting)? Again, I think Jenkins would help here, if only as a management tool to track what's outstanding and to assign review

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

2015-06-29 Thread Mike Holmes
Need to send this with API-NEXT in the subject because it touches include/odp/api AND in the subject, make it a patch series for the two separate ideas AND is a warning that you tried to do more than one thing in a patch. Also you added a new API to API-NEXT with an implementation but you did

Re: [lng-odp] Next odp point release

2015-06-29 Thread Bill Fischofer
Yes, one of those butlers. :) On Mon, Jun 29, 2015 at 4:05 PM, Mike Holmes mike.hol...@linaro.org wrote: On 29 June 2015 at 16:55, Bill Fischofer bill.fischo...@linaro.org wrote: Perhaps we can use the Tuesday ODP Jira planning meeting to also do a quick review of outstanding patches and

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

2015-06-29 Thread Mike Holmes
Current API definition does not state this was instantaneous frequency, jut that it is in HZ, it needs to now say this is the max frequency http://docs.opendataplane.org/master/linux-generic-doxygen-html/group__odp__ver__abt__log__dbg.html#ga135b9f3168549a9d043fe0a1b8f8ae08 On 25 June 2015 at

Re: [lng-odp] Next odp point release

2015-06-29 Thread Mike Holmes
On 29 June 2015 at 16:55, Bill Fischofer bill.fischo...@linaro.org wrote: Perhaps we can use the Tuesday ODP Jira planning meeting to also do a quick review of outstanding patches and their review status (similar to Thursday's bug meeting)? We could take time for both, lets try it, but

[lng-odp] [RFC 0/3] Support segmented packet (Bug #1670)

2015-06-29 Thread Nicolas Morey-Chaisemartin
Small patch series to: - remove the basic socket support as it doesn't seem to be used anymore - support segmented packets in socket MMSG mode. The first and third patches are quite straight forward. The second has more to discuss: * I'm not fully happy the way we compute the max packet size

[lng-odp] [RFC 3/3] test: pktio: reduce pools seg_len to test segmented packets

2015-06-29 Thread Nicolas Morey-Chaisemartin
Signed-off-by: Nicolas Morey-Chaisemartin nmo...@kalray.eu --- test/validation/pktio/pktio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/validation/pktio/pktio.c b/test/validation/pktio/pktio.c index 5911ca7..fea40aa 100644 --- a/test/validation/pktio/pktio.c +++

[lng-odp] [RFC 1/3] linux-generic: pktio: remove basic socket implementation

2015-06-29 Thread Nicolas Morey-Chaisemartin
Signed-off-by: Nicolas Morey-Chaisemartin nmo...@kalray.eu --- example/generator/odp_generator.c | 1 - example/packet/odp_pktio.c | 1 - .../linux-generic/include/odp_packet_io_internal.h | 3 +- platform/linux-generic/odp_packet_io.c |

[lng-odp] [RFC 2/3] linux-generic: pktio: handle segmented packet in socket mode

2015-06-29 Thread Nicolas Morey-Chaisemartin
Fixes bug #1670 Signed-off-by: Nicolas Morey-Chaisemartin nmo...@kalray.eu --- platform/linux-generic/odp_packet_socket.c | 95 +- 1 file changed, 79 insertions(+), 16 deletions(-) diff --git a/platform/linux-generic/odp_packet_socket.c