[lng-odp] [OpenDataPlane/odp] 059af8: api: queue: add order maintenance parameter

2019-02-12 Thread Petri Savolainen
Branch: refs/heads/master Home: https://github.com/OpenDataPlane/odp Commit: 059af8bd22a1e7d9a9dcc31846b06c55b5759df6 https://github.com/OpenDataPlane/odp/commit/059af8bd22a1e7d9a9dcc31846b06c55b5759df6 Author: Petri Savolainen Date: 2019-02-13 (Wed, 13 Feb 2019) Changed

[lng-odp] [OpenDataPlane/odp] 20d4c5: api: spec: correct coding style issues

2019-02-04 Thread Petri Savolainen
Branch: refs/heads/master Home: https://github.com/OpenDataPlane/odp Commit: 20d4c58012d1bfed817eba53a09c4fa81e470dc7 https://github.com/OpenDataPlane/odp/commit/20d4c58012d1bfed817eba53a09c4fa81e470dc7 Author: Petri Savolainen Date: 2019-02-04 (Mon, 04 Feb 2019) Changed

[lng-odp] [OpenDataPlane/odp] b1564e: linux-gen: buffer: clean checkpatch warnings

2019-01-31 Thread Petri Savolainen
Branch: refs/heads/master Home: https://github.com/OpenDataPlane/odp Commit: b1564eb643c16dc98048fb9aa072580451ed90b2 https://github.com/OpenDataPlane/odp/commit/b1564eb643c16dc98048fb9aa072580451ed90b2 Author: Petri Savolainen Date: 2019-01-31 (Thu, 31 Jan 2019) Changed

[lng-odp] [API-NEXT PATCH] api: ipsec: add warning status event

2017-07-14 Thread Petri Savolainen
Add status ID for warning messages. Outbound inline soft lifetime expiration is currently the only source of these events. API spec keeps simple when the same warning structure is shared with IPSEC packet and status events. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.

[lng-odp] [PATCH v2 1/3] linux-gen: buffer: change buffer handle to pointer

2017-07-13 Thread Petri Savolainen
Changed buffer, event and timeout handles to be pointers. Packet handles are already pointers. This enabled code optimization as some conversions may be removed and remaining once are just type casts. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/arch/defau

[lng-odp] [PATCH v2 2/3] linux-gen: queue: avoid extra conversions

2017-07-13 Thread Petri Savolainen
Conversions are not needed as event handles are buffer header pointers. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- .../linux-generic/include/odp_buffer_inlines.h | 5 -- platform/linux-generic/odp_queue.c | 74 +++--- 2 files c

[lng-odp] [API-NEXT PATCH v3 3/9] api: ipsec: direction specific SA params

2017-07-12 Thread Petri Savolainen
Move direction (inboud/outbound) specific SA parameters into separate structures. Specification is more clear between common and direction specific SA parameters. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> Signed-off-by: Bogdan Pricope <bogdan.pric...@linaro.org>

[lng-odp] [API-NEXT PATCH v3 6/9] api: ipsec: split operation result status bits

2017-07-12 Thread Petri Savolainen
Split error bits into error and warning bits. Move flags into separate type and field. This way, all exceptions (rare but important events) can be checked and maintained separately from operation flags, which may be set for almost every packet. Signed-off-by: Petri Savolainen <petri.savo

[lng-odp] [API-NEXT PATCH v3 8/9] api: ipsec: outer header pointer as const

2017-07-12 Thread Petri Savolainen
Outer headers are read-only data for an implementation. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/odp/api/spec/ipsec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[lng-odp] [API-NEXT PATCH v3 7/9] api: ipsec: flexible soft lifetime reporting

2017-07-12 Thread Petri Savolainen
Allow implementation to decide how many times a soft lifetime expiration is reported. Application does not require strict synchronization of soft lifetimes. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 +++- 1 file changed, 3 insertions

[lng-odp] [API-NEXT PATCH v3 5/9] api: ipsec: ignore aad capability

2017-07-12 Thread Petri Savolainen
AAD lengths are needed in crypto API but not in IPSEC API. So, application should ignore AAD capability values in IPSEC API. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[lng-odp] [API-NEXT PATCH v3 2/9] api: ipsec: add max queues capability

2017-07-12 Thread Petri Savolainen
Added capability to specify maximum number of different queues that can be used with IPsec. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 1 file changed, 4 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/ap

[lng-odp] [API-NEXT PATCH v3 1/9] api: ipsec: add salt parameter

2017-07-12 Thread Petri Savolainen
Added a parameter for passing salt/nonce for algorithms that need it. Currently, only AES GCM needs it with 4 bytes of salt. Later on, other cipher (or auth) algorithms may need also salt/nonce data. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/i

[lng-odp] [API-NEXT PATCH v3 9/9] api: ipsec: remove initial sequence number parameter

2017-07-12 Thread Petri Savolainen
Application should not need to control initial sequence number value as implementation is able to manage that internally. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/odp/ap

[lng-odp] [API-NEXT PATCH v2 6/9] api: ipsec: split operation result status bits

2017-07-12 Thread Petri Savolainen
Split error bits into error and warning bits. Move flags into separate type and field. This way, all exceptions (rare but important events) can be checked and maintained separately from operation flags, which may be set for almost every packet. Signed-off-by: Petri Savolainen <petri.savo

[lng-odp] [API-NEXT PATCH v2 3/9] api: ipsec: direction specific SA params

2017-07-12 Thread Petri Savolainen
Move direction (inboud/outbound) specific SA parameters into separate structures. Specification is more clear between common and direction specific SA parameters. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> Signed-off-by: Bogdan Pricope <bogdan.pric...@linaro.org>

[lng-odp] [API-NEXT PATCH v2 8/9] api: ipsec: outer header pointer as const

2017-07-12 Thread Petri Savolainen
Outer headers are read-only data for an implementation. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/odp/api/spec/ipsec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[lng-odp] [API-NEXT PATCH v2 4/9] api: ipsec: remove time based SA lifetime

2017-07-12 Thread Petri Savolainen
Application may track time based SA lifetime expiration efficiently and in many ways: e.g. ODP timers may be used, wall clock time may be polled, control plane may send notifications, etc. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.

[lng-odp] [API-NEXT PATCH v2 1/9] api: ipsec: add salt parameter

2017-07-12 Thread Petri Savolainen
Added a parameter for passing salt/nonce for algorithms that need it. Currently, only AES GCM needs it with 4 bytes of salt. Later on, other cipher or auth algorithms may need also salt/nonce data. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/i

[lng-odp] [API-NEXT PATCH v2 5/9] api: ipsec: ignore aad capability

2017-07-12 Thread Petri Savolainen
AAD lengths are needed in crypto API but not in IPSEC API. So, application should ignore AAD capability values in IPSEC API. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[lng-odp] [API-NEXT PATCH v2 7/9] api: ipsec: flexible soft lifetime reporting

2017-07-12 Thread Petri Savolainen
Allow implementation to decide how many times a soft lifetime expiration is reported. Application does not require strict synchronization of soft lifetimes. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 +++- 1 file changed, 3 insertions

[lng-odp] [API-NEXT PATCH v2 2/9] api: ipsec: add max queues capability

2017-07-12 Thread Petri Savolainen
Added capability to specify maximum number of different queues that can be used with IPsec. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 1 file changed, 4 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/ap

[lng-odp] [API-NEXT PATCH v2 9/9] api: ipsec: remove initial sequence number parameter

2017-07-12 Thread Petri Savolainen
Application should not need to control initial sequence number value as implementation is able to manage that internally. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/odp/ap

[lng-odp] [API-NEXT PATCH 3/9] api: ipsec: direction specific SA params

2017-07-11 Thread Petri Savolainen
Move direction (inboud/outbound) specific SA parameters into separate structures. Specification is more clear between common and direction specific SA parameters. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> Signed-off-by: Bogdan Pricope <bogdan.pric...@linaro.org>

[lng-odp] [API-NEXT PATCH 8/9] api: ipsec: outer header pointer as const

2017-07-11 Thread Petri Savolainen
Outer headers are read-only data for an implementation. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- include/odp/api/spec/ipsec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[lng-odp] [API-NEXT PATCH 6/9] api: ipsec: split operation result status bits

2017-07-11 Thread Petri Savolainen
Split error bits into error and warning bits. Move flags into separate type and field. This way, all exceptions (rare but important events) can be checked and maintained separately from operation flags, which may be set for almost every packet. Signed-off-by: Petri Savolainen <petri.savo

[lng-odp] [API-NEXT PATCH 4/9] api: ipsec: remove time based SA lifetime

2017-07-11 Thread Petri Savolainen
Application may track time based SA lifetime expiration efficiently and in many ways: e.g. ODP timers may be used, wall clock time may be polled, control plane may send notifications, etc. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.

[lng-odp] [API-NEXT PATCH 5/9] api: ipsec: ignore aad capability

2017-07-11 Thread Petri Savolainen
AAD lengths are needed in crypto API but not in IPSEC API. So, application should ignore AAD capability values in IPSEC API. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[lng-odp] [API-NEXT PATCH 7/9] api: ipsec: flexible soft lifetime reporting

2017-07-11 Thread Petri Savolainen
Allow implementation to decide how many times a soft lifetime expiration is reported. Application does not require strict synchronization of soft lifetimes. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 +++- 1 file changed, 3 insertions

[lng-odp] [API-NEXT PATCH 1/9] api: ipsec: add salt parameter

2017-07-11 Thread Petri Savolainen
Added a parameter for passing salt for AES GCM. Currently, only option for length is 4 bytes, but later on other algorithms may need more/less salt data. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 10 ++ 1 file changed, 10 inse

[lng-odp] [API-NEXT PATCH 2/9] api: ipsec: add max queues capability

2017-07-11 Thread Petri Savolainen
Added capability to specify maximum number of different queues that can be used with IPsec. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 4 1 file changed, 4 insertions(+) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/ap

[lng-odp] [API-NEXT PATCH 9/9] api: ipsec: remove initial sequence number parameter

2017-07-11 Thread Petri Savolainen
Application should not need to control initial sequence number value as implementation is able to manage that internally. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/odp/ap

[lng-odp] [PATCH 1/3] linux-gen: buffer: change buffer handle to pointer

2017-07-07 Thread Petri Savolainen
Changed buffer, event and timeout handles to be pointers. Packet handles are already pointers. This enabled code optimization as some conversions may be removed and remaining once are just type casts. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/arch/defau

[lng-odp] [PATCH 3/3] linux-gen: pool: avoid extra conversions

2017-07-07 Thread Petri Savolainen
Avoid conversions between buffer/packet handles and buffer/packet header pointers. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_pool_internal.h | 5 +-- platform/linux-generic/odp_packet.c

[lng-odp] [PATCH 2/3] linux-gen: queue: avoid extra conversions

2017-07-07 Thread Petri Savolainen
Conversions are not needed as event handles are buffer header pointers. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- .../linux-generic/include/odp_buffer_inlines.h | 5 -- platform/linux-generic/odp_queue.c | 61 +- 2 files c

[lng-odp] [PATCH 0/3] Change buffer handle to pointer

2017-07-07 Thread Petri Savolainen
/Makefile.am # TESTS += pktio_ipc/pktio_ipc_run.sh # SUBDIRS += pktio_ipc L2fwd packet rate (odp-linux / pktio:dpdk) improves about 3%. Petri Savolainen (3): linux-gen: buffer: change buffer handle to pointer linux-gen: queue: avoid extra conversions linux-gen: pool: avoid extra conversions

[lng-odp] [API-NEXT PATCH v2 5/6] linux-gen: queue: combine queue interface set functions

2017-07-04 Thread Petri Savolainen
Decrease queue interface size by combining four queue operation set functions into a single function. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_queue_if.h | 16 +-- platform/linux-generic/odp_packet_io.c

[lng-odp] [API-NEXT PATCH v2 4/6] linux-gen: pktio: remove unused header file

2017-07-04 Thread Petri Savolainen
odp_packet_io_queue.h is not needed anymore as the queue interface has replaced it. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/Makefile.am | 1 - .../linux-generic/include/odp_packet_io_queue.h| 48 pl

[lng-odp] [API-NEXT PATCH v2 1/6] linux-gen: cls: avoid queue conversions

2017-07-04 Thread Petri Savolainen
Use internal queue type instead of API handle. This way per packet queue conversions are avoided. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_packet_internal.h | 3 ++- platform/linux-generic/include/odp_queue_if.h

[lng-odp] [API-NEXT PATCH v2 2/6] linux-gen: pktio: dont use qentry for queue_t

2017-07-04 Thread Petri Savolainen
These are not any more queue_entry_t* but queue_t. Align variable names with the new type. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/odp_packet_io.c | 66 +- 1 file changed, 33 insertions(+), 33 deletions(-)

[lng-odp] [API-NEXT PATCH v2 6/6] linux-gen: queue: remove type set from interface

2017-07-04 Thread Petri Savolainen
TM should not modify queue type. Remove type_set queue interface function. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_queue_if.h | 2 -- platform/linux-generic/odp_queue.c| 8 +--- platform/linux-g

[lng-odp] [API-NEXT PATCH v2 3/6] linux-gen: pktio: convert queue handle only once

2017-07-04 Thread Petri Savolainen
Avoid queue handle conversion on fast path. Convert once after queue create and save value. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_packet_io_internal.h | 2 ++ platform/linux-generic/odp_packet_io.c

[lng-odp] [API-NEXT PATCH v2 0/6] Queue interface clean up

2017-07-04 Thread Petri Savolainen
plain and sched queues as queue types. v2: * Rebased on top of latest api-next and "Clean up scheduler interface" patch set Petri Savolainen (6): linux-gen: cls: avoid queue conversions linux-gen: pktio: dont use qentry for queue_t linux-gen: pktio: convert queue handle

[lng-odp] [API-NEXT PATCH 3/4] linux-gen: sched: remove most dependecies to qentry

2017-06-30 Thread Petri Savolainen
interface definition, which is not changed in this patch. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- .../linux-generic/include/odp_queue_internal.h | 7 -- platform/linux-generic/odp_queue.c | 40 +- platform/linux-generic/odp_sche

[lng-odp] [API-NEXT PATCH 1/4] linux-gen: sched: remove schedule interface depedency to qentry

2017-06-30 Thread Petri Savolainen
Do not use queue internal type in schedule interface. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_schedule_if.h | 8 +++-- platform/linux-generic/odp_queue.c | 9 -- platform/linux-generic/odp_schedule.c

[lng-odp] [API-NEXT PATCH 4/4] linux-gen: sched: remove unused sched interface functions

2017-06-30 Thread Petri Savolainen
Removed functions that are no longer used. Also removed unused parameter from save_context function. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_schedule_if.h | 7 +-- platform/linux-generic/odp_queue.c

[lng-odp] [API-NEXT PATCH 2/4] linux-gen: sched: use config max ordered locks

2017-06-30 Thread Petri Savolainen
Use config file value for the number of ordered locks everywhere. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_config_internal.h | 2 +- platform/linux-generic/odp_schedule.c| 8 +--- platform/linux-g

[lng-odp] [API-NEXT PATCH v4] api: pool: additional packet length configuration

2017-06-28 Thread Petri Savolainen
her packets into DDR Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/pool.h | 140 +++- 1 file changed, 126 insertions(+), 14 deletions(-) diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h index

[lng-odp] [API-NEXT PATCH 4/5] linux-gen: queue: combine queue interface functions

2017-06-27 Thread Petri Savolainen
Combine enqueue and dequeue function pointer set functions into pktin/pktout calls so that queue interface size gets smaller and code more readable. Also provide single call for TM. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_queu

[lng-odp] [API-NEXT PATCH 2/5] linux-gen: pktio: clean up and avoid conversion

2017-06-27 Thread Petri Savolainen
Remove references to qentry as it's not visible in this file anymore. Avoid API handle to internal queue conversion on fast path (sched_cb_pktin_poll()). Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- .../linux-generic/include/odp_packet_io_internal.h | 3 + platform

[lng-odp] [API-NEXT PATCH 3/5] linux-gen: pktio: remove unused header file

2017-06-27 Thread Petri Savolainen
odp_packet_io_queue.h is not needed anymore as the queue interface has replaced it. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/Makefile.am | 1 - .../linux-generic/include/odp_packet_io_queue.h| 48 pl

[lng-odp] [API-NEXT PATCH 0/5] Queue interface clean up

2017-06-27 Thread Petri Savolainen
. Petri Savolainen (5): linux-gen: cls: avoid queue conversions linux-gen: pktio: clean up and avoid conversion linux-gen: pktio: remove unused header file linux-gen: queue: combine queue interface functions linux-gen: queue: remove type set from interface platform/linux-generic

[lng-odp] [API-NEXT PATCH 1/5] linux-gen: cls: avoid queue conversions

2017-06-27 Thread Petri Savolainen
Use internal queue type instead of API handle. This way per packet queue conversions are avoided. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_packet_internal.h | 3 ++- platform/linux-generic/include/odp_queue_if.h

[lng-odp] [API-NEXT PATCH 5/5] linux-gen: queue: remove type set from interface

2017-06-27 Thread Petri Savolainen
TM should not modify queue type, thus the interface function is not needed for that. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/include/odp_queue_if.h | 2 -- platform/linux-generic/odp_queue.c| 8 +--- platform/linux-g

[lng-odp] [API-NEXT PATCH] test: l2fwd: list not used features

2017-06-26 Thread Petri Savolainen
List not used features so that performance may be optimized on some platforms. E.g. on odp-linux implementation, timer polling causes high overhead, which is disabled when timers are not used. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- test/common_plat/perfo

[lng-odp] [PATCH v2] linux-gen: time: fix ARM compile for GCC 4.8

2017-06-22 Thread Petri Savolainen
Use __aarch64__ instead of __ARM_ARCH, since it's backwards compatible between GCC versions. Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3066 Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/arch/arm/odp_cpu_arch.c | 4 ++-- 1 file chan

[lng-odp] [PATCH] linux-gen: time: fix ARM compile for GCC 4.8

2017-06-21 Thread Petri Savolainen
Use __aarch64__ instead of __ARM_ARCH, since it's backwards compatible between GCC versions. Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3066 Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/arch/arm/odp_cpu_arch.c | 4 ++-- 1 file chan

[lng-odp] [PATCH] linux-gen: makefile: fix out of tree build

2017-06-19 Thread Petri Savolainen
Generated files need $(top_builddir) instead of $(top_srcdir) Fixes bug https://bugs.linaro.org/show_bug.cgi?id=3052 Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/Makefile.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pl

[lng-odp] [API-NEXT PATCH v3 1/3] api: event: add subtype to expand event type

2017-06-16 Thread Petri Savolainen
Event subtype gives more detailed information about the event. Two subtypes (basic and IPSEC packet) are introduced initially. Later on, other packet producing APIs (crypto, comp, etc) may also produce packet events with additional subtypes. Signed-off-by: Petri Savolainen <petri.savo

[lng-odp] [API-NEXT PATCH v3 0/3] IPSEC packet event

2017-06-16 Thread Petri Savolainen
t;packet_ipsec" indicates that a packet contain IPSEC results * Added output packet format description, which was accidentally left out from previous version (moved text from deleted result type to odp_ipsec_in() / odp_ipsec_out() documentation) Petri Savolainen (3): api: event: add subt

[lng-odp] [API-NEXT PATCH v3 3/3] api: ipsec: disable event is the last event

2017-06-16 Thread Petri Savolainen
Disable event is guaranteed to be the last event for the SA, so that application can use it for SA destroy synchronization. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[lng-odp] [API-NEXT PATCH v3] api: pool: additional packet length configuration

2017-06-15 Thread Petri Savolainen
her packets into DDR Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/pool.h | 132 +++- 1 file changed, 118 insertions(+), 14 deletions(-) diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h index

[lng-odp] [API-NEXT PATCH v2 2/3] api: ipsec: change IPSEC result to packet

2017-06-14 Thread Petri Savolainen
which do not care about IPSEC results may work on basic packet metadata. IPSEC result event type changes from ODP_EVENT_IPSEC_RESULT to ODP_EVENT_PACKET. Event subtype (ODP_EVENT_PACKET_IPSEC) can be used to identify packets with IPSEC metadata. Signed-off-by: Petri Savolainen <petri.savo

[lng-odp] [API-NEXT PATCH v2 1/3] api: event: add subtype to expand event type

2017-06-14 Thread Petri Savolainen
Event subtype gives more detailed information about the event. Two subtypes (basic and IPSEC packet) are introduced initially. Later on, other packet producing APIs (crypto, comp, etc) may also produce packet events with additional subtypes. Signed-off-by: Petri Savolainen <petri.savo

[lng-odp] [API-NEXT PATCH v2 3/3] api: ipsec: disable event is the last event

2017-06-14 Thread Petri Savolainen
Disable event is guaranteed to be the last event for the SA, so that application can use it for SA destroy synchronization. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[lng-odp] [API-NEXT PATCH v2 0/3] IPSEC packet event

2017-06-14 Thread Petri Savolainen
a packet contain IPSEC results * Added output packet format description, which was accidentally left out from previous version (moved text from deleted result type to odp_ipsec_in() / odp_ipsec_out() documentation) Petri Savolainen (3): api: event: add subtype to expand event type a

[lng-odp] [API-NEXT PATCH] linux-gen: queue: clean up after modular interface

2017-06-12 Thread Petri Savolainen
Clean up function and parameter naming after modular interface patch. Queue_t type is referred as "queue internal": queue_int or q_int. Term "handle" is reserved for API level handles (e.g. odp_queue_t, odp_pktio_t, etc) through out linux-gen implementation. Signed-off-

[lng-odp] [API-NEXT PATCH 1/2] api: ipsec: change IPSEC result to packet

2017-06-09 Thread Petri Savolainen
do not care about IPSEC results may work on basic packet metadata. IPSEC result event type changes from ODP_EVENT_IPSEC_RESULT to ODP_EVENT_PACKET_IPSEC. Later on, other packet producing APIs (crypto, comp, etc) may also produce special packet events. Signed-off-by: Petri Savolainen

[lng-odp] [API-NEXT PATCH 2/2] api: ipsec: disable event is the last event

2017-06-09 Thread Petri Savolainen
Disable event is guaranteed to be the last event for the SA, so that application can use it for SA destroy synchronization. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

[lng-odp] [API-NEXT PATCH 0/2] IPSEC packet event

2017-06-09 Thread Petri Savolainen
is packets with additional metadata. Application or API pipeline stages which do not care about IPSEC results may work on basic packet metadata. Petri Savolainen (2): api: ipsec: change IPSEC result to packet api: ipsec: disable event is the last event include/odp/api/spec/event.h

[lng-odp] [API-NEXT PATCH v2 2/2] api: ipsec: add max number of cos capability

2017-06-02 Thread Petri Savolainen
Added capability for maximum number of different CoS in CLS pipelining. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/ap

[lng-odp] [API-NEXT PATCH v2 1/2] api: ipsec: refine packet order specification

2017-06-02 Thread Petri Savolainen
State more explicitly that async ipsec operations maintain packet order the same way as odp_queue_enq_multi(). Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 40 ++-- 1 file changed, 26 insertions(

[lng-odp] [API-NEXT PATCH v2 0/2] IPsec API update

2017-06-02 Thread Petri Savolainen
Bill has reviewed v1. v2 * rebase * removed "api: ipsec: add capability for max packets per result event" from the set while we decide if result event are changed to packets * updated max_cls_cos documentation with CLS capability (Bill) Petri Savolainen (2): api: ipsec: refine pa

[lng-odp] [PATCH] scripts: spelling: update to latest version

2017-06-01 Thread Petri Savolainen
Updated Linux spelling file to it's latest version. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- scripts/spelling.txt | 151 +-- 1 file changed, 147 insertions(+), 4 deletions(-) diff --git a/scripts/spelling.txt b/s

[lng-odp] [PATCH 1/2] scripts: checkpatch: revert code modification

2017-06-01 Thread Petri Savolainen
-by: Petri Savolainen <petri.savolai...@linaro.org> --- scripts/checkpatch.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 1c27ac60..16316b92 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -4273,7 +

[lng-odp] [PATCH 2/2] scripts: checkpatch: ignore volatile and extern warnings

2017-06-01 Thread Petri Savolainen
These warnings were disabled with code modification. Use checkpatch config file to ignore those. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- .checkpatch.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.checkpatch.conf b/.checkpatch.conf index 043551a4..99

[lng-odp] [API-NEXT PATCH v2] api: pool: additional packet length configuration

2017-05-30 Thread Petri Savolainen
give hints and requirements about e.g. memory to be used for pools (or parts of pools). Additionally, pool configuration may be extended with a table of num/len/opt values. This gives application more flexibility to specify requirements for various packet sizes. Signed-off-by: Petri Savolainen

[lng-odp] [API-NEXT PATCH 1/3] api: ipsec: refine packet order specification

2017-05-05 Thread Petri Savolainen
State more explicitly that async ipsec operations maintain packet order the same way as odp_queue_enq_multi(). Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 40 ++-- 1 file changed, 26 insertions(

[lng-odp] [API-NEXT PATCH 2/3] api: ipsec: add capability for max packets per result event

2017-05-05 Thread Petri Savolainen
Added maximum number of packets per result event to make it easy for application to prepare enough storage for packets. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-)

[lng-odp] [API-NEXT PATCH 3/3] api: ipsec: add max number of cos capability

2017-05-05 Thread Petri Savolainen
Added capability for maximum number of different CoS in CLS pipelining. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/ipsec.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/ipsec.h b/include/odp/ap

[lng-odp] [API-NEXT RFC] api: pool: additional packet length configuration

2017-05-04 Thread Petri Savolainen
packet sizes. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/pool.h| 117 +++-- include/odp/arch/default/api/abi/pool.h| 2 + .../include/odp/api/plat/pool_types.h | 2 + 3 files change

[lng-odp] [API-NEXT PATCH 1/2] api: crypto: add digest length session parameter

2017-05-04 Thread Petri Savolainen
Authentication capabilities list supported digest lengths per algorithm, but application did not have means to select which length is used. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/crypto.h | 8 +++- 1 file changed, 7 insertions(+), 1 de

[lng-odp] [API-NEXT PATCH 2/2] api: crypto: add AAD operation parameters

2017-05-04 Thread Petri Savolainen
Authentication capabilities list supported AAD lengths per algorithm, but application did not have means to select which length is used. Also pointer to AAD is added, since it may be constructed also outside of packet data. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.

[lng-odp] [API-NEXT PATCH v3 09/11] linux-gen: time: use hw time counter when available

2017-04-28 Thread Petri Savolainen
Use 64 bit HW time counter when available. It is used on x86 when invariant TSC CPU flag indicates that TSC frequency is constant. Otherwise, the system time is used as before. Direct HW time counter usage avoids system call, and related latency and performance issues. Signed-off-by: Petri

[lng-odp] [API-NEXT PATCH v3 08/11] test: validation: add time accuracy test

2017-04-28 Thread Petri Savolainen
Test ODP time keeping accuracy against system time. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- test/common_plat/validation/api/time/time.c | 66 +++-- 1 file changed, 54 insertions(+), 12 deletions(-) diff --git a/test/common_plat/validati

[lng-odp] [API-NEXT PATCH v3 03/11] linux-gen: cpu_flags: added x86 cpu flag read functions

2017-04-28 Thread Petri Savolainen
When building on x86 CPU flags can be used to determine which CPU features are supported. CPU flag definitions and the code to read the flags is from DPDK. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- configure.ac| 1 + platform/Makefi

[lng-odp] [API-NEXT PATCH v3 11/11] linux-gen: time: store timespec as nsec

2017-04-28 Thread Petri Savolainen
. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- .../include/odp/api/plat/time_types.h | 32 ++--- platform/linux-generic/odp_time.c | 143 ++--- 2 files changed, 52 insertions(+), 123 deletions(-) diff --git a/platform

[lng-odp] [API-NEXT PATCH v3 01/11] api: time: remove odp_time_to_u64 from API

2017-04-28 Thread Petri Savolainen
values and expected greater/lesser than relation. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/time.h | 13 -- platform/linux-generic/odp_time.c | 15 test/common_plat/validation/api/time/time.

[lng-odp] [API-NEXT PATCH v3 04/11] linux-gen: system: implement system info print

2017-04-28 Thread Petri Savolainen
Print API, impl name, CPU model/freq, cache line size and CPU count by default. Print CPU flags in case of x86. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- .../linux-generic/arch/arm/odp_sysinfo_parse.c | 4 +++ .../linux-generic/arch/default/odp_sysinfo_parse.

[lng-odp] [API-NEXT PATCH v3 00/11] Use HW time counter

2017-04-28 Thread Petri Savolainen
11/11: Lower odp_time_t memory footprint due to converting timespec to nsec time before storing into odp_time_t Petri Savolainen (11): api: time: remove odp_time_to_u64 from API api: system: added system info print linux-gen: cpu_flags: added x86 cpu flag read functions

[lng-odp] [API-NEXT PATCH v3 07/11] test: validation: rename time test header file

2017-04-28 Thread Petri Savolainen
Header file name time.h is ambiguos since C has a library header file with the same name. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- test/common_plat/validation/api/time/Makefile.am | 2 +- test/common_plat/validation/api/time/time.c

[lng-odp] [API-NEXT PATCH v3 06/11] test: sched_latency: use sys_info_print

2017-04-28 Thread Petri Savolainen
Use the new system info print function. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- test/common_plat/performance/odp_sched_latency.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/test/common_plat/performance/odp_sched_latenc

[lng-odp] [API-NEXT PATCH v3 10/11] linux-gen: time: improve x86 TSC freq measurement accuracy

2017-04-28 Thread Petri Savolainen
Add short warm up round and measure over a longer period of time (250ms vs 100ms). Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- platform/linux-generic/arch/x86/odp_cpu_arch.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pl

[lng-odp] [API-NEXT PATCH v3 05/11] test: validation: add odp_sys_info_print test

2017-04-28 Thread Petri Savolainen
Added validation test for the new system info print call. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- test/common_plat/validation/api/system/system.c | 8 test/common_plat/validation/api/system/system.h | 1 + 2 files changed, 9 insertions(+) diff --git

[lng-odp] [API-NEXT PATCH v3 02/11] api: system: added system info print

2017-04-28 Thread Petri Savolainen
This information specifies the system where ODP application is running for debugging purposes. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- include/odp/api/spec/system_info.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/odp/api/spec/system_inf

[lng-odp] [API-NEXT PATCH v2 8/8] linux-gen: time: use hw time counter when available

2017-04-24 Thread Petri Savolainen
Use 64 bit HW time counter when available. It is used on x86 when invariant TSC CPU flag indicates that TSC frequency is constant. Otherwise, the system time is used as before. Direct HW time counter usage avoids system call, and related latency and performance issues. Signed-off-by: Petri

[lng-odp] [API-NEXT PATCH v2 2/8] linux-gen: cpu_flags: added x86 cpu flag read functions

2017-04-24 Thread Petri Savolainen
When building on x86 CPU flags can be used to determine which CPU features are supported. CPU flag definitions and the code to read the flags is from DPDK. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- configure.ac| 1 + platform/Makefi

[lng-odp] [API-NEXT PATCH v2 3/8] linux-gen: system: implement system info print

2017-04-24 Thread Petri Savolainen
Print API, impl name, CPU model/freq, cache line size and CPU count by default. Print CPU flags in case of x86. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- .../linux-generic/arch/arm/odp_sysinfo_parse.c | 4 +++ .../linux-generic/arch/default/odp_sysinfo_parse.

[lng-odp] [API-NEXT PATCH v2 7/8] test: validation: add time accuracy test

2017-04-24 Thread Petri Savolainen
Test ODP time keeping accuracy against system time. Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org> --- test/common_plat/validation/api/time/time.c | 72 +++-- 1 file changed, 57 insertions(+), 15 deletions(-) diff --git a/test/common_plat/validati

[lng-odp] [API-NEXT PATCH v2 0/8] Use HW time counter

2017-04-24 Thread Petri Savolainen
of unintialized variable (false warning). * Fixed install of new arch/x86/cpu_flag files Petri Savolainen (8): api: system: added system info print linux-gen: cpu_flags: added x86 cpu flag read functions linux-gen: system: implement system info print test: validation: add

  1   2   3   4   5   6   7   8   9   10   >