[lng-odp] [PATCHv4 2/2] configure.ac update version numbers

2016-11-21 Thread Maxim Uvarov
Signed-off-by: Maxim Uvarov --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index be5a292..287e478 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ([2.5]) # Set correct API

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

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

Re: [lng-odp] [PATCHv3 2/2] configure.ac update version numbers

2016-11-21 Thread Mike Holmes
On 21 November 2016 at 10:08, Maxim Uvarov wrote: > Signed-off-by: Maxim Uvarov > --- > configure.ac | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/configure.ac b/configure.ac > index be5a292..3880b19 100644 > ---

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

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

Re: [lng-odp] Content filtered message notification

2016-11-21 Thread Mike Holmes
All The plain text mode appears to be working, I was notified when I sent HTML, please monitor carefully for a few days. Your post shoudl end up here [1] if it made it to the list [1] https://lists.linaro.org/pipermail/lng-odp/2016-November/thread.html On 21 November 2016 at 09:59,

Re: [lng-odp] [API-NEXT PATCHv7 05/13] api: shm: add flags to shm_reserve and function to find external mem

2016-11-21 Thread Savolainen, Petri (Nokia - FI/Espoo)
Reviewed-by: Petri Savolainen > -Original Message- > From: Christophe Milard [mailto:christophe.mil...@linaro.org] > Sent: Thursday, November 17, 2016 5:46 PM > To: Savolainen, Petri (Nokia - FI/Espoo) labs.com>;

[lng-odp] [PATCHv3 2/2] configure.ac update version numbers

2016-11-21 Thread Maxim Uvarov
Signed-off-by: Maxim Uvarov --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index be5a292..3880b19 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ([2.5]) # Set correct API

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

2016-11-21 Thread Maxim Uvarov
Updated Bills patch to 1.12 version and alse update .so version numbers. Bill Fischofer (1): changelog: summary of changes for odp v1.12.0.0 Maxim Uvarov (1): configure.ac update version numbers CHANGELOG| 211 +++ configure.ac |

[lng-odp] [API-NEXT PATCH v4 05/23] linux-gen: pool: reimplement pool with ring

2016-11-21 Thread Petri Savolainen
Used the ring data structure to implement pool. Also buffer structure was simplified to enable future driver interface. Every buffer includes a packet header, so each buffer can be used as a packet head or segment. Segmentation was disabled and segment size was fixed to a large number (64kB) to

[lng-odp] [API-NEXT PATCH v4 15/23] linux-gen: packet: added support for segmented packets

2016-11-21 Thread Petri Savolainen
Added support for multi-segmented packets. The first segments is the packet descriptor, which contains all metadata and pointers to other segments. Signed-off-by: Petri Savolainen --- .../include/odp/api/plat/packet_types.h| 6 +-

[lng-odp] [API-NEXT PATCH v4 08/23] linux-gen: pool: optimize buffer alloc

2016-11-21 Thread Petri Savolainen
Round up global pool allocations to a burst size. Cache any extra buffers for future use. Prefetch buffers header which very newly allocated from global pool and will be returned to the caller. Signed-off-by: Petri Savolainen ---

[lng-odp] [API-NEXT PATCH v4 03/23] linux-gen: ring: created common ring implementation

2016-11-21 Thread Petri Savolainen
Moved scheduler ring code into a new header file, so that it can be used also in other parts of the implementation. Signed-off-by: Petri Savolainen --- platform/linux-generic/Makefile.am | 1 + platform/linux-generic/include/odp_ring_internal.h |

[lng-odp] [API-NEXT PATCH v4 12/23] test: performance: crypto: use capability to select max packet

2016-11-21 Thread Petri Savolainen
Applications must use pool capabilibty to check maximum values for parameters. Used maximum segment length since application seems to support only single segment packets. Signed-off-by: Petri Savolainen --- test/common_plat/performance/odp_crypto.c | 47

[lng-odp] [API-NEXT PATCH v4 09/23] linux-gen: pool: clean up pool inlines functions

2016-11-21 Thread Petri Savolainen
Removed odp_pool_to_entry(), which was a duplicate of pool_entry_from_hdl(). Renamed odp_buf_to_hdr() to buf_hdl_to_hdr(), which describes more accurately the internal function. Inlined pool_entry(), pool_entry_from_hdl() and buf_hdl_to_hdr(), which are used often and also outside of pool.c.

[lng-odp] [API-NEXT PATCH v4 17/23] api: packet: added limits for packet len on alloc

2016-11-21 Thread Petri Savolainen
There's no use case for application to allocate zero length packets. Application should always have some knowledge about the new packet data length before allocation. Also implementations are more efficient when a check for zero length is avoided. Also added a pool parameter to specify the

[lng-odp] [API-NEXT PATCH v4 21/23] validation: pktio: honour pool capability limits

2016-11-21 Thread Petri Savolainen
Check pool capability limits for packet length and segment length, and do not exceed those. Signed-off-by: Petri Savolainen --- test/common_plat/validation/api/pktio/pktio.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git

[lng-odp] [API-NEXT PATCH v4 00/23] pool optimization

2016-11-21 Thread Petri Savolainen
Pool performance is optimized by using a ring as the global buffer storage. IPC build is disabled, since it needs large modifications due to dependency to pool internals. Old pool implementation was based on locks and linked list of buffer headers. New implementation maintain a ring of buffer

[lng-odp] [API-NEXT PATCH v4 11/23] test: validation: buf: test alignment

2016-11-21 Thread Petri Savolainen
Added checks for correct alignment. Also updated tests to call odp_pool_param_init() for parameter initialization. Signed-off-by: Petri Savolainen --- test/common_plat/validation/api/buffer/buffer.c | 113 +--- 1 file changed, 63 insertions(+), 50

[lng-odp] [API-NEXT PATCH v4 22/23] linux-gen: pool: check pool parameters

2016-11-21 Thread Petri Savolainen
Check pool parameters against maximum capabilities. Also defined a limit for maximum buffer and user area sizes. Chose 10 MB as a limit since it's small enough to be available in all Linux systems and it should be more than enough for normal pool usage. Signed-off-by: Petri Savolainen

[lng-odp] [API-NEXT PATCH v4 06/23] linux-gen: ring: added multi enq and deq

2016-11-21 Thread Petri Savolainen
Added multi-data versions of ring enqueue and dequeue operations. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_ring_internal.h | 65 ++ 1 file changed, 65 insertions(+) diff --git

[lng-odp] [API-NEXT PATCH v4 07/23] linux-gen: pool: use ring multi enq and deq operations

2016-11-21 Thread Petri Savolainen
Use multi enq and deq operations to optimize global pool access performance. Temporary uint32_t arrays are needed since handles are pointer size variables. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_pool.c | 32 1

[lng-odp] [API-NEXT PATCH v4 18/23] linux-gen: packet: remove zero len support from alloc

2016-11-21 Thread Petri Savolainen
Remove support for zero length allocations which were never required by the API specification or tested by the validation suite. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_packet.c | 28 1 file changed, 28 deletions(-)

[lng-odp] [API-NEXT PATCH v4 20/23] validation: crypto: honour pool capability limits

2016-11-21 Thread Petri Savolainen
Reduced oversized packet length and segment length requirements from 32 kB to 1 kB (tens of bytes are actually used). Also check that lengths are not larger than pool capabilities for those. Signed-off-by: Petri Savolainen ---

[lng-odp] [API-NEXT PATCH v4 23/23] linux-gen: packet: enable multi-segment packets

2016-11-21 Thread Petri Savolainen
Enable segmentation support with CONFIG_PACKET_MAX_SEGS configuration option. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_config_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[lng-odp] [API-NEXT PATCH v4 04/23] linux-gen: align: added round up power of two

2016-11-21 Thread Petri Savolainen
Added a macro to round up a value to the next power of two, if it's not already a power of two. Also removed duplicated code from the same file. Signed-off-by: Petri Savolainen --- .../linux-generic/include/odp_align_internal.h | 34 +- 1 file

[lng-odp] [API-NEXT PATCH v4 19/23] linux-gen: socket: use trunc instead of pull tail

2016-11-21 Thread Petri Savolainen
This is a bug correction for multi-segment packet handling. Packet pull tail cannot decrement packet length more than there are data in the last segment. Trunc tail must be used instead. Signed-off-by: Petri Savolainen --- platform/linux-generic/pktio/socket.c | 25

[lng-odp] [API-NEXT PATCH v4 14/23] test: validation: packet: fix bugs in tailroom and concat tests

2016-11-21 Thread Petri Savolainen
Tailroom test did not call odp_packet_extend_tail() since it pushed tail too few bytes. Corrected the test to extend the tail by 100 bytes. Concat test did pass the same packet as src and dst packets. There's no valid use case to concatenate a packet into itself (forms a loop). Corrected the test

[lng-odp] [API-NEXT PATCH v4 02/23] linux-gen: pktio: do not free zero packets

2016-11-21 Thread Petri Savolainen
In some error cases, netmap and dpdk pktios were calling odp_packet_free_multi with zero packets. Moved existing error check to avoid a free call with zero packets. Signed-off-by: Petri Savolainen --- platform/linux-generic/pktio/dpdk.c | 10 ++

[lng-odp] [API-NEXT PATCH v4 01/23] linux-gen: ipc: disable build of ipc pktio

2016-11-21 Thread Petri Savolainen
IPC pktio implementation depends heavily on pool internals. It's build is disabled due to pool re-implementation. IPC should be re-implemented with a cleaner internal interface towards pool and shm. Signed-off-by: Petri Savolainen ---

[lng-odp] Test of plain text mail

2016-11-21 Thread Mike Holmes
All This is an experiment to check that the list can notify HTML posters that the list requires text mail. Mike -- Mike Holmes Program Manager - Linaro Networking Group Linaro.org │ Open source software for ARM SoCs "Work should be fun and collaborative, the rest follows"

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

2016-11-21 Thread Christophe Milard
ping On 17 November 2016 at 16:46, Christophe Milard wrote: > since v6: > - All points according to Petri's request i.e.: > Odp_shm_find_external() changed again: now odp_shm_import(). > Function description updated. > > since v5: > -fixed

Re: [lng-odp] enumerator and driver registration

2016-11-21 Thread Francois Ozog
Hello, I made a google doc version of this to simplify comments and resolving. https://docs.google.com/a/linaro.org/document/d/10gS9wPNza-EXfxu9iVdk6o7- cfhUz2XJ2dp50t0ERas/edit?usp=sharing (I gave edit rights to Christophe, Forest and Yi: you should you PrettyCode addon for syntax

Re: [lng-odp] virtio and vhost support in ODP

2016-11-21 Thread Francois Ozog
OVS is a standard component of OpenStack. I am not sure I would say OVS is fundamental: Juniper Contrail is probably more DEPLOYED in real NFV architectures. Very large deployments need OpenStack Distributed Virtual Routing (https://wiki.openstack.org/wiki/Neutron/DVR) which is not using OVS