[lng-odp] [PATCHv7 3/3] configure.ac update version numbers

2016-11-24 Thread Maxim Uvarov
Default is abi compat mode, all interface functions changed, so increase first number of .so Signed-off-by: Maxim Uvarov --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b460a65..e7b8f8a 100644

[lng-odp] [PATCHv7 2/3] changelog: summary of changes for odp v1.12.0.0

2016-11-24 Thread Maxim Uvarov
From: Bill Fischofer Signed-off-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- CHANGELOG | 177 ++ 1 file changed, 177 insertions(+) diff --git

[lng-odp] [PATCHv7 1/3] configure.ac: disable shared library for non abi compat mode

2016-11-24 Thread Maxim Uvarov
original configure.ac enables abi compat mode by default, even without --enable-abi-compat provided. And has broken logic to disable abi compat mode. Correct logic to build abi compat mode and option to disable it. Shared library is not needed for non abi compat mode, so turn it off.

[lng-odp] [PATCHv7 0/3] changelog: summary of changes for odp v1.12.0.0

2016-11-24 Thread Maxim Uvarov
v7: more accurate define disable option (Anders) Bill Fischofer (1): changelog: summary of changes for odp v1.12.0.0 Maxim Uvarov (2): configure.ac: disable shared library for non abi compat mode configure.ac update version numbers CHANGELOG| 177

Re: [lng-odp] [PATCHv6 1/3] configure.ac: disable shared library for non abi compat mode

2016-11-24 Thread Maxim Uvarov
On 11/24/16 23:12, Anders Roxell wrote: On 24 November 2016 at 17:03, Maxim Uvarov wrote: original configure.ac enables abi compat mode by default, even without --enable-abi-compat provided. And has broken logic to disable abi compat mode. Correct logic to build abi

Re: [lng-odp] [PATCHv6 1/3] configure.ac: disable shared library for non abi compat mode

2016-11-24 Thread Anders Roxell
On 24 November 2016 at 17:03, Maxim Uvarov wrote: > original configure.ac enables abi compat mode by default, > even without --enable-abi-compat provided. And has broken > logic to disable abi compat mode. Correct logic to build abi > compat mode and option to disable it.

Re: [lng-odp] [API-NEXT PATCHv9 00/15] using _ishm as north API mem allocator

2016-11-24 Thread Maxim Uvarov
Christophe, with this patch series and without it I see odp_pktio_perf hangs in background. And it looks like accept() never pass. Interesting is that Cunit reported this test as passed and actually it's in background. Other apps looks like ok. 81../sysdeps/unix/syscall-template.S: No

[lng-odp] [PATCHv6 2/3] changelog: summary of changes for odp v1.12.0.0

2016-11-24 Thread Maxim Uvarov
From: Bill Fischofer Signed-off-by: Bill Fischofer Signed-off-by: Maxim Uvarov --- CHANGELOG | 177 ++ 1 file changed, 177 insertions(+) diff --git

[lng-odp] [PATCHv6 3/3] configure.ac update version numbers

2016-11-24 Thread Maxim Uvarov
Default is abi compat mode, all interface functions changed, so increase first number of .so Signed-off-by: Maxim Uvarov --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 7cb0c7a..de634dc 100644

[lng-odp] [PATCHv6 1/3] configure.ac: disable shared library for non abi compat mode

2016-11-24 Thread Maxim Uvarov
original configure.ac enables abi compat mode by default, even without --enable-abi-compat provided. And has broken logic to disable abi compat mode. Correct logic to build abi compat mode and option to disable it. Shared library is not needed for non abi compat mode, so turn it off.

[lng-odp] [PATCHv6 0/3] changelog: summary of changes for odp v1.12.0.0

2016-11-24 Thread Maxim Uvarov
v6: uh, finally we agreed with .so numberding. added patch to disable shared library for non abi compat mode and corrected description for configure option. Bill Fischofer (1): changelog: summary of changes for odp v1.12.0.0 Maxim Uvarov (2): configure.ac: disable shared library for

[lng-odp] [API-NEXT PATCHv9 15/15] doc: updating docs for the shm interface extension

2016-11-24 Thread Christophe Milard
Signed-off-by: Christophe Milard --- doc/users-guide/users-guide.adoc | 68 ++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/doc/users-guide/users-guide.adoc b/doc/users-guide/users-guide.adoc index

[lng-odp] [API-NEXT PATCHv9 14/15] linux_gen: _ishm: decreasing the number of error messages when no huge pages

2016-11-24 Thread Christophe Milard
Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/platform/linux-generic/_ishm.c b/platform/linux-generic/_ishm.c index b00f8f1..7d9c213 100644 ---

[lng-odp] [API-NEXT PATCHv9 13/15] linux-gen: _ishm: cleaning remaining block at odp_term_global

2016-11-24 Thread Christophe Milard
Remaining (forgotten, not freed) blocks are gathered and related files cleaned when odp_term_global() is called. An error message is also issued so the application writters get to know about these blocks Signed-off-by: Christophe Milard ---

[lng-odp] [API-NEXT PATCHv9 12/15] test: linux-gen: api: shmem: test sharing memory between ODP instances

2016-11-24 Thread Christophe Milard
The platform tests odp/test/linux-generic/validation/api/shmem are updated to both test ODP<->linux process memory sharing, but also test ODP to ODP (different instances) memory sharing. shmem_linux is the main test process, and shmem_linux.c contains (at file top) a chart flow of the test

[lng-odp] [API-NEXT PATCHv9 11/15] linux-gen: shm: add flag and function to share memory between ODP instances

2016-11-24 Thread Christophe Milard
Implemented by calling the related functions from _ishm. Signed-off-by: Christophe Milard --- platform/linux-generic/odp_shared_memory.c | 31 +++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git

[lng-odp] [API-NEXT PATCHv9 09/15] test: api: shmem: new proper tests for shm API

2016-11-24 Thread Christophe Milard
The shmem "sunnydays" tests for the north interface API are replaced with proper tests, testing memory allocation at different time (before and after ODP thread creation, i.e. the tests make sure shmem behaves the same regardless of fork time). The tests also include stress testing trying to

[lng-odp] [API-NEXT PATCHv9 10/15] linux-gen: _ishm: adding function to map memory from other ODP

2016-11-24 Thread Christophe Milard
functionality to export and map memory between ODP instance is added: This includes: - a bit of simplification in _odp_ishm_reserve() for externaly provided file descriptors. - a new function, _odp_ishm_find_exported() to map memory from other ODP instances (On same OS) Signed-off-by:

[lng-odp] [API-NEXT PATCHv9 07/15] api: shm: add flags to shm_reserve and function to find external mem

2016-11-24 Thread Christophe Milard
The ODP_SHM_SINGLE_VA flag is created: when set (at odp_shm_reserve()), this flag guarantees that all ODP threads sharing this memory block will see the block at the same address (regadless of ODP thread type -pthread vs process- or fork time) The flag ODP_SHM_EXPORT is added: when passed at

[lng-odp] [API-NEXT PATCHv9 08/15] linux-gen: shm: new ODP_SHM_SINGLE_VA flag implementation

2016-11-24 Thread Christophe Milard
This flag guarentess the unicity the the block address on all ODP threads. The patch just exposes the _ODP_ISHM_SINGLE_VA flag of the internal memory allocator, ishm. Signed-off-by: Christophe Milard --- platform/linux-generic/odp_shared_memory.c | 1 + 1 file

[lng-odp] [API-NEXT PATCHv9 06/15] linux-gen: push internal flag definition

2016-11-24 Thread Christophe Milard
File platform/linux-generic/include/odp_shm_internal.h exposes shm internals used by IPC. The bits used by the internal flags are moved to make room for more "official" values. The platform/linux-generic/include/odp_shm_internal.h file should really be removed when _ishm is used, but as long as we

[lng-odp] [API-NEXT PATCHv9 05/15] linux-gen: use ishm as north API mem allocator

2016-11-24 Thread Christophe Milard
The odp shared_memory API is changed to use the ODP internal memory allocator: _ishm. _ishm supports memory sharing between processes, regardless of fork time. The test testing the ODP_SHM_PROC flag is also changed to cope with the new OS sharing interface used by _ishm (link in /tmp).

[lng-odp] [API-NEXT PATCHv9 04/15] linux-gen: _ishm: allow memory alloc/free at global init/term

2016-11-24 Thread Christophe Milard
_ishm.c assumed that both _ishm_init_global() and _ishm_init_local() had been run to work properly. This assumption turns out the be a problem if _ishm is to be used as main memory allocator, as many modules init_global functions assume the availability of the odp_reserve() function before any

[lng-odp] [API-NEXT PATCHv9 03/15] linux-gen: _ishm: create description file for external memory sharing

2016-11-24 Thread Christophe Milard
A new flag called _ODP_ISHM_EXPORT is added to _ishm. When this flag is specified at reserve() time, an extra file ("/tmp/odp--shm-", where is the process ID of the main ODP instatiation process and is the block name given at reserve time) is created, describing to the underlying block

[lng-odp] [API-NEXT PATCHv9 02/15] linux-gen: init: removing possible obsolete ODP files at startup

2016-11-24 Thread Christophe Milard
When an ODP program is killed, some odp files may remain in /tmp and the huge page mount point. As signal KILL cannot be caught, there is not much one can do to prevent that. But when an new odp session is started, all files prefixed with the opd prefix ("odp--") can be safely removed as the PID

[lng-odp] [API-NEXT PATCHv9 00/15] using _ishm as north API mem allocator

2016-11-24 Thread Christophe Milard
since v8: - commit msg typo fix (Maxim) - use snprintf() instead of sprintf() (Maxim) - better handling of error cases (Maxim) since v7: - Fix not to use single-va memory when the requirement alignment exactely matches the page size (Maxim) - patch to clean-up all

[lng-odp] [API-NEXT PATCHv9 01/15] linux-gen: _ishm: fix for alignment request matching page size

2016-11-24 Thread Christophe Milard
There is no reason to toggle the _ODP_ISHM_SINGLE_VA flag when the alignment exactly matches the page size. This just results in wasting the odp-common virtual space Signed-off-by: Christophe Milard --- platform/linux-generic/_ishm.c | 4 ++-- 1 file changed, 2

Re: [lng-odp] [API-NEXT PATCHv8 02/15] linux-gen: init: removing possible obsolete ODP files at startup

2016-11-24 Thread Christophe Milard
On 24 November 2016 at 15:36, Maxim Uvarov wrote: > On 11/24/16 11:24, Christophe Milard wrote: >> >> When an ODP program is killed, some odp files may remain in /tmp and >> the huge page mount point. As signal KILL cannot be caught, there is not >> much one can do to

Re: [lng-odp] [API-NEXT PATCHv8 02/15] linux-gen: init: removing possible obsolete ODP files at startup

2016-11-24 Thread Maxim Uvarov
On 11/24/16 11:24, Christophe Milard wrote: When an ODP program is killed, some odp files may remain in /tmp and the huge page mount point. As signal KILL cannot be caught, there is not much one can do to prevent that. But when an new odp session is started, all files prefixed with the opd

Re: [lng-odp] [API-NEXT PATCHv8 01/15] linux-gen: _ishm: fix for alignment request matching page size

2016-11-24 Thread Maxim Uvarov
On 11/24/16 11:24, Christophe Milard wrote: There is no reason to toggle the _ODP_ISHM_SINGLE_VA flag when the alignment exactely exactly matches the page size. This just results in wasting the odp-common virtual space Signed-off-by: Christophe Milard ---

Re: [lng-odp] [API-NEXT PATCH] api: ipsec: added IPSEC API

2016-11-24 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: Bala Manoharan [mailto:bala.manoha...@linaro.org] > Sent: Thursday, November 24, 2016 9:50 AM > To: Savolainen, Petri (Nokia - FI/Espoo) labs.com> > Cc: lng-odp-forward > Subject: Re: [lng-odp]

Re: [lng-odp] [API-NEXT PATCH] api: ipsec: added IPSEC API

2016-11-24 Thread Savolainen, Petri (Nokia - FI/Espoo)
Hi, You missed to reply to the list. No HTML please. Readability of a conversation is especially bad when you reply in HTML to patches... From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@linaro.org] Sent: Wednesday, November 23, 2016 11:34 PM To: Savolainen, Petri (Nokia - FI/Espoo)

Re: [lng-odp] [API-NEXT PATCHv4 1/7] api: random: replace use_entropy with odp_rand_kind parameter

2016-11-24 Thread Savolainen, Petri (Nokia - FI/Espoo)
From: Bill Fischofer [mailto:bill.fischo...@linaro.org] Sent: Wednesday, November 23, 2016 4:05 PM To: Savolainen, Petri (Nokia - FI/Espoo) Cc: lng-odp@lists.linaro.org Subject: Re: [lng-odp] [API-NEXT PATCHv4 1/7] api: random: replace use_entropy with

Re: [lng-odp] lng-odp at a text only list.

2016-11-24 Thread Savolainen, Petri (Nokia - FI/Espoo)
Could bugzilla spam a dedicated lng-odp-bugs / lng-odp-reports / etc list ? We'd need only one strictly plain text list - the one that humans use for patches. -Petri > -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Mike > Holmes > Sent:

[lng-odp] [PATCH] test: validation: updating crypto auth capability check

2016-11-24 Thread Balakrishna Garapati
Add missing capability check on crypto auth algos Signed-off-by: Balakrishna Garapati --- test/common_plat/validation/api/crypto/odp_crypto_test_inp.c | 12 1 file changed, 12 insertions(+) diff --git