[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 --- configure.ac| 1 + platform/Makefile.inc | 4

[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 --- .../linux-generic/arch/arm/odp_sysinfo_parse.c | 4 +++ .../linux-generic/arch/default/odp_sysinfo_parse.c | 4 +++ .../linux-generic/arch

[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 --- test/common_plat/validation/api/time/time.c | 72 +++-- 1 file changed, 57 insertions(+), 15 deletions(-) diff --git a/test/common_plat/validation/api/time/time.c b/test/common_plat

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

2017-04-24 Thread Petri Savolainen
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

[lng-odp] [API-NEXT PATCH v2 6/8] test: validation: rename time test header file

2017-04-24 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 --- test/common_plat/validation/api/time/Makefile.am | 2 +- test/common_plat/validation/api/time/time.c | 2 +- test/common_plat/validation/api

[lng-odp] [API-NEXT PATCH v2 5/8] test: sched_latency: use sys_info_print

2017-04-24 Thread Petri Savolainen
Use the new system info print function. Signed-off-by: Petri Savolainen --- 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_latency.c b/test/common_plat/performance

[lng-odp] [API-NEXT PATCH v2 4/8] test: validation: add odp_sys_info_print test

2017-04-24 Thread Petri Savolainen
Added validation test for the new system info print call. Signed-off-by: Petri Savolainen --- 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 a/test/common_plat/validation/api

[lng-odp] [API-NEXT PATCH v2 1/8] api: system: added system info print

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

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

2017-04-21 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 --- configure.ac| 1 + platform/linux-generic/Makefile.am | 4

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

2017-04-21 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 7/8] test: validation: add time accuracy test

2017-04-21 Thread Petri Savolainen
Test ODP time keeping accuracy against system time. Signed-off-by: Petri Savolainen --- test/common_plat/validation/api/time/time.c | 72 +++-- 1 file changed, 57 insertions(+), 15 deletions(-) diff --git a/test/common_plat/validation/api/time/time.c b/test/common_plat

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

2017-04-21 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 --- platform/linux-generic/arch/arm/odp_sysinfo_parse.c | 4 .../linux-generic/arch/default/odp_sysinfo_parse.c | 4 .../linux-generic

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

2017-04-21 Thread Petri Savolainen
correctly). Patch 2/8 causes two checkpatch errors due to code copied from DPDK. Both the macro and the ifdef cannot be changed, so errors should be ignored. Petri Savolainen (8): api: system: added system info print linux-gen: cpu_flags: added x86 cpu flag read functions linux-gen: system

[lng-odp] [API-NEXT PATCH 4/8] test: validation: add odp_sys_info_print test

2017-04-21 Thread Petri Savolainen
Added validation test for the new system info print call. Signed-off-by: Petri Savolainen --- 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 a/test/common_plat/validation/api

[lng-odp] [API-NEXT PATCH 5/8] test: sched_latency: use sys_info_print

2017-04-21 Thread Petri Savolainen
Use the new system info print function. Signed-off-by: Petri Savolainen --- 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_latency.c b/test/common_plat/performance

[lng-odp] [API-NEXT PATCH 6/8] test: validation: rename time test header file

2017-04-21 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 --- test/common_plat/validation/api/time/Makefile.am | 2 +- test/common_plat/validation/api/time/time.c | 2 +- test/common_plat/validation/api

[lng-odp] [API-NEXT PATCH 1/8] api: system: added system info print

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

[lng-odp] [API-NEXT PATCH v4 1/2] api: queue: added queue size param

2017-04-13 Thread Petri Savolainen
application requires in minimum. Signed-off-by: Petri Savolainen --- include/odp/api/spec/queue.h | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 7972feac..9dd0a561 100644 --- a

[lng-odp] [API-NEXT PATCH v4 2/2] validation: queue: test queue max_num per type

2017-04-13 Thread Petri Savolainen
Updated implementation and test with type specific number of queues. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_queue.c| 2 ++ test/common_plat/validation/api/queue/queue.c | 49 +-- 2 files changed, 34 insertions(+), 17 deletions

[lng-odp] [API-NEXT PATCH] api: ipsec: spi_overlap and lookup modes

2017-04-07 Thread Petri Savolainen
Lookup modes are per SA and thus may be used in a mix. Spi_overlap parameter is global. So, removed comment about ignoring it in LOOKUP_SPI mode. Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/odp

[lng-odp] [PATCH 3/3] linux-gen: sched: optimize group scheduling

2017-04-06 Thread Petri Savolainen
belong to different groups Lowered the maximum number of groups from 256 to 32 (in the default configuration) to limit memory usage of priority queues. This should be enough for the most users. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_schedule.c | 284

[lng-odp] [PATCH 1/3] test: l2fwd: add group option

2017-04-06 Thread Petri Savolainen
User may give number of scheduling groups to test scheduler performance with other that the default (all threads) group. Both pktios and threads are allocated into these groups with round robin. The number of groups may not exceed number of pktios or worker threads. Signed-off-by: Petri

[lng-odp] [PATCH 2/3] linux-gen: sched: use weight table for preferences

2017-04-06 Thread Petri Savolainen
A precalculated table is more flexible for tunning weights than hard coding. As future development, the table may be updated with different weights at init or run time. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_schedule.c | 51 ++- 1 file

[lng-odp] [Linaro/odp] ce1850: api: ipsec: extend lookaside API

2017-04-03 Thread Petri Savolainen
Branch: refs/heads/api-next Home: https://github.com/Linaro/odp Commit: ce1850c781e3a60d6a2afaf52eced67ebcaa95f4 https://github.com/Linaro/odp/commit/ce1850c781e3a60d6a2afaf52eced67ebcaa95f4 Author: Petri Savolainen Date: 2017-04-03 (Mon, 03 Apr 2017) Changed paths: M

[lng-odp] [Linaro/odp] 5876b4: validation: packet: do not require a max packet le...

2017-04-03 Thread Petri Savolainen
d1c4cab4ea https://github.com/Linaro/odp/commit/e91cf8bb39da24d2a7dbfbb328aa35d1c4cab4ea Author: Petri Savolainen Date: 2017-04-03 (Mon, 03 Apr 2017) Changed paths: M include/odp/api/spec/packet.h Log Message: --- api: packet: add per packet checksum control Checksum ins

[lng-odp] [PATCH v3 1/2] api: queue: added queue size param

2017-04-03 Thread Petri Savolainen
application requires in minimum. Signed-off-by: Petri Savolainen --- include/odp/api/spec/queue.h | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 7972fea..9c83322 100644 --- a/include

[lng-odp] [PATCH v3 2/2] validation: queue: test queue max_num per type

2017-04-03 Thread Petri Savolainen
Updated implementation and test with type specific number of queues. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_queue.c| 2 ++ test/common_plat/validation/api/queue/queue.c | 49 +-- 2 files changed, 34 insertions(+), 17 deletions

[lng-odp] [API-NEXT PATCH v2 2/2] validation: queue: test queue max_num per type

2017-03-31 Thread Petri Savolainen
Updated implementation and test with type specific number of queues. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_queue.c| 2 ++ test/common_plat/validation/api/queue/queue.c | 43 --- 2 files changed, 28 insertions(+), 17 deletions

[lng-odp] [API-NEXT PATCH v2 1/2] api: queue: added queue size param

2017-03-31 Thread Petri Savolainen
application requires in minimum. Signed-off-by: Petri Savolainen --- include/odp/api/spec/queue.h | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 7972fea..55b7e44 100644 --- a/include/odp

[lng-odp] [API-NEXT PATCH 2/2] validation: queue: test queue max_num per type

2017-03-31 Thread Petri Savolainen
Updated implementation and test with type specific number of queues. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_queue.c| 2 ++ test/common_plat/validation/api/queue/queue.c | 43 --- 2 files changed, 28 insertions(+), 17 deletions

[lng-odp] [API-NEXT PATCH 1/2] api: queue: added queue size param

2017-03-31 Thread Petri Savolainen
application requires in minimum. Signed-off-by: Petri Savolainen --- include/odp/api/spec/queue.h | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/include/odp/api/spec/queue.h b/include/odp/api/spec/queue.h index 7972fea..fea72ca 100644 --- a/include/odp

[lng-odp] [API-NEXT PATCH v2 2/4] api: deprecated: add configure option and macros

2017-03-30 Thread Petri Savolainen
built with both options. Signed-off-by: Petri Savolainen --- configure.ac | 19 +++- doc/application-api-guide/api_guide_lines.dox | 6 +-- doc/platform-api-guide/Doxyfile| 1 + doc/process-guide/release-guide.adoc

[lng-odp] [API-NEXT PATCH v2 4/4] api: crypto: enforce deprecated API status

2017-03-30 Thread Petri Savolainen
Used ODP_DEPRECATE() to control if deprecated API definitions are visible in the API or not. Signed-off-by: Petri Savolainen --- include/odp/api/spec/crypto.h | 29 ++-- platform/linux-generic/odp_crypto.c | 45 + 2 files changed, 48

[lng-odp] [API-NEXT PATCH v2 3/4] test: crypto: remove references to deprecated crypto apis

2017-03-30 Thread Petri Savolainen
Remove last remaining references to deprecated API definitions. Signed-off-by: Petri Savolainen --- example/ipsec/odp_ipsec_misc.h| 4 ++-- example/ipsec/odp_ipsec_sa_db.c | 4 ++-- example/ipsec/odp_ipsec_stream.c | 6 +++--- test/common_plat/performance

[lng-odp] [API-NEXT PATCH v2 0/4] Deprecated macros

2017-03-30 Thread Petri Savolainen
). Petri Savolainen (4): api: hints: remove ODP_DEPRECATED from API api: deprecated: add configure option and macros test: crypto: remove references to deprecated crypto apis api: crypto: enforce deprecated API status configure.ac | 19 +++- doc

[lng-odp] [API-NEXT PATCH v2 1/4] api: hints: remove ODP_DEPRECATED from API

2017-03-30 Thread Petri Savolainen
. Signed-off-by: Petri Savolainen --- include/odp/api/spec/hints.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h index 82400f0..7434c6a 100644 --- a/include/odp/api/spec/hints.h +++ b/include/odp/api/spec/hints.h @@ -52,11 +52,6

[lng-odp] [API-NEXT PATCH v4 2/3] api: ipsec: add inline IPSEC support

2017-03-30 Thread Petri Savolainen
Added support for inline IPSEC processing on packet input and output. Inline mode IPSEC and traffic manager cannot be enabled (currently) on the same pktio interface. Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 355 --- include/odp

[lng-odp] [API-NEXT PATCH v4 1/3] api: ipsec: extend lookaside API

2017-03-30 Thread Petri Savolainen
queries. Improved outbound fragmentation documentation. Signed-off-by: Petri Savolainen --- include/odp/api/spec/event.h | 2 +- include/odp/api/spec/ipsec.h | 198 ++- 2 files changed, 158 insertions(+), 42 deletions(-) diff --git a/include/odp/api/spec

[lng-odp] [API-NEXT PATCH v4 3/3] linux-gen: ipsec: add stubs for new functions

2017-03-30 Thread Petri Savolainen
Enable application build with IPSEC. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_ipsec.c | 24 1 file changed, 24 insertions(+) diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index 588d8d8..5eb1be3 100644 --- a

[lng-odp] [API-NEXT PATCH] api: packet: add per packet checksum control

2017-03-28 Thread Petri Savolainen
Checksum insertion has pktio interface level configuration options. Per packet override is needed for example when L4 checksumming is enabled and application forwards packets. Forwarded packets need to maintain original, end-to-end checksum value. Signed-off-by: Petri Savolainen --- include/odp

[lng-odp] [API-NEXT PATCH v3 2/4] api: ipsec: add inline IPSEC support

2017-03-24 Thread Petri Savolainen
Added support for inline IPSEC processing on packet input and output. Inline mode IPSEC and traffic manager cannot be enabled (currently) on the same pktio interface. Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 355 --- include/odp

[lng-odp] [API-NEXT PATCH v3 3/4] linux-gen: ipsec: add stubs for new functions

2017-03-24 Thread Petri Savolainen
Enable application build with IPSEC. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_ipsec.c | 24 1 file changed, 24 insertions(+) diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index 588d8d8..5eb1be3 100644 --- a

[lng-odp] [API-NEXT PATCH v3 1/4] api: ipsec: extend lookaside API

2017-03-24 Thread Petri Savolainen
queries. Improved outbound fragmentation documentation. Signed-off-by: Petri Savolainen --- include/odp/api/spec/event.h | 2 +- include/odp/api/spec/ipsec.h | 191 +-- 2 files changed, 151 insertions(+), 42 deletions(-) diff --git a/include/odp/api/spec

[lng-odp] [API-NEXT PATCH v3 4/4] api: packet: add per packet checksum control

2017-03-24 Thread Petri Savolainen
Checksum insertion has pktio interface level configuration options. Per packet override is needed for example when L4 checksumming is enabled and application forwards packets. Forwarded packets need to maintain original, end-to-end checksum value. Signed-off-by: Petri Savolainen --- include/odp

[lng-odp] [API-NEXT PATCH v2 2/3] api: ipsec: add inline IPSEC support

2017-03-21 Thread Petri Savolainen
Added support for inline IPSEC processing on packet input and output. Inline mode IPSEC and traffic manager cannot be enabled (currently) on the same pktio interface. Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 348 --- include/odp

[lng-odp] [API-NEXT PATCH v2 3/3] linux-gen: ipsec: add stubs for new functions

2017-03-21 Thread Petri Savolainen
Enable application build with IPSEC. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_ipsec.c | 24 1 file changed, 24 insertions(+) diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index 588d8d8..5eb1be3 100644 --- a

[lng-odp] [API-NEXT PATCH v2 1/3] api: ipsec: extend lookaside API

2017-03-21 Thread Petri Savolainen
Added configuration option for inbound SPI range and default queue. Added SA disable function and status event for the response from it. The same event may be used for e.g. IPSEC statistics, etc queries. Improved outbound fragmentation documentation. Signed-off-by: Petri Savolainen --- include

[lng-odp] [API-NEXT PATCH v2 2/3] api: ipsec: add inline IPSEC support

2017-03-21 Thread Petri Savolainen
Added support for inline IPSEC processing on packet input and output. Inline mode IPSEC and traffic manager cannot be enabled (currently) on the same pktio interface. Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 348 --- include/odp

[lng-odp] [API-NEXT PATCH v2 1/3] api: ipsec: extend lookaside API

2017-03-21 Thread Petri Savolainen
Added configuration option for inbound SPI range and default queue. Added SA disable function and status event for the response from it. The same event may be used for e.g. IPSEC statistics, etc queries. Improved outbound fragmentation documentation. Signed-off-by: Petri Savolainen --- include

[lng-odp] [API-NEXT PATCH v2 3/3] linux-gen: ipsec: add stubs for new functions

2017-03-21 Thread Petri Savolainen
Enable application build with IPSEC. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_ipsec.c | 24 1 file changed, 24 insertions(+) diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index 588d8d8..5eb1be3 100644 --- a

[lng-odp] [PATCH] linux-gen: packet: make inline table visible

2017-03-13 Thread Petri Savolainen
Add visibility markers to make inline offset table visible applications linking against an installed copy of the library. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_packet.c | 4 1 file changed, 4 insertions(+) diff --git a/platform/linux-generic/odp_packet.c b

[lng-odp] [RFC API-NEXT PATCH 2/2] api: ipsec: add inline IPSEC support

2017-03-03 Thread Petri Savolainen
Added support for inline IPSEC processing on packet input and output. Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 134 +++ include/odp/api/spec/packet_io.h | 27 2 files changed, 149 insertions(+), 12 deletions(-) diff

[lng-odp] [RFC API-NEXT PATCH 1/2] api: ipsec: extend lookaside API

2017-03-03 Thread Petri Savolainen
Added SPI range and SA disable. Improved fragment documentation. Signed-off-by: Petri Savolainen --- include/odp/api/spec/event.h | 2 +- include/odp/api/spec/ipsec.h | 43 +-- 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/include/odp

[lng-odp] [PATCH v2 2/2] linux-gen: tm: use handle conversion function

2017-03-01 Thread Petri Savolainen
Use (from buffer to packet handle) conversion function instead of casting. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_traffic_mngr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_traffic_mngr.c b/platform/linux-generic

[lng-odp] [PATCH v2 1/2] linux-gen: ipc: use hdr to handle conversion function

2017-03-01 Thread Petri Savolainen
Use conversion function instead of casting. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_packet_internal.h | 5 + platform/linux-generic/odp_packet.c | 5 - platform/linux-generic/pktio/ipc.c | 2 +- 3 files changed, 6

[lng-odp] [PATCH 2/2] linux-gen: tm: use handle conversion function

2017-02-27 Thread Petri Savolainen
Use (from buffer to packet handle) conversion function instead of casting. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_traffic_mngr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_traffic_mngr.c b/platform/linux-generic

[lng-odp] [PATCH 1/2] linux-gen: ipc: use hdr to handle conversion function

2017-02-27 Thread Petri Savolainen
Use conversion function instead of casting. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_packet_internal.h | 6 ++ platform/linux-generic/odp_packet.c | 5 - platform/linux-generic/pktio/ipc.c | 2 +- 3 files changed, 7

[lng-odp] [API-NEXT PATCH 2/4] api: deprecated: add ODP_DEPRECATED configure option

2017-02-23 Thread Petri Savolainen
configuration option --enable-deprecated to control the macro value. Signed-off-by: Petri Savolainen --- configure.ac | 19 +-- include/odp/api/spec/.gitignore| 1 + include/odp/api/spec/deprecated.h.in | 38

[lng-odp] [API-NEXT PATCH 4/4] api: crypto: enforce deprecated API status

2017-02-23 Thread Petri Savolainen
Used ODP_DEPRECATED to control if deprecated API definitions are visible in the API or not. Signed-off-by: Petri Savolainen --- include/odp/api/spec/crypto.h | 16 +++-- platform/linux-generic/odp_crypto.c | 45 + 2 files changed, 45 insertions

[lng-odp] [API-NEXT PATCH 3/4] test: crypto: remove references to deprecated crypto apis

2017-02-23 Thread Petri Savolainen
Remove last remaining references to deprecated API definitions. Signed-off-by: Petri Savolainen --- example/ipsec/odp_ipsec_misc.h| 4 ++-- example/ipsec/odp_ipsec_sa_db.c | 4 ++-- example/ipsec/odp_ipsec_stream.c | 6 +++--- test/common_plat/performance

[lng-odp] [API-NEXT PATCH 1/4] api: hints: remove ODP_DEPRECATED from API

2017-02-23 Thread Petri Savolainen
. Signed-off-by: Petri Savolainen --- include/odp/api/spec/hints.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/odp/api/spec/hints.h b/include/odp/api/spec/hints.h index 82400f0..a763645 100644 --- a/include/odp/api/spec/hints.h +++ b/include/odp/api/spec/hints.h @@ -52,11 +52,6

[lng-odp] [API-NEXT PATCH 4/4] validation: crypto: add stubs for sha-1 and sha-512 tests

2017-02-22 Thread Petri Savolainen
API enumerations are tested but functional tests are missing still. Signed-off-by: Petri Savolainen --- test/common_plat/validation/api/crypto/crypto.h| 2 ++ .../validation/api/crypto/odp_crypto_test_inp.c| 32 ++ 2 files changed, 34 insertions(+) diff --git a

[lng-odp] [API-NEXT PATCH 2/4] api: crypto: add sha-1 and sha-512 enumerations

2017-02-22 Thread Petri Savolainen
Added enumerations for HMAC-SHA-1 and HMAC-SHA-256 authentication algorithms. Signed-off-by: Petri Savolainen --- include/odp/api/spec/crypto.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 9855bf9

[lng-odp] [API-NEXT PATCH 1/4] abi: event: add ODP_EVENT_IPSEC_RESULT

2017-02-22 Thread Petri Savolainen
Update ABI spec with the new IPSEC event type. Signed-off-by: Petri Savolainen Signed-off-by: Dmitry Eremin-Solenikov --- include/odp/arch/default/api/abi/event.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/odp/arch/default/api/abi/event.h b/include/odp/arch

[lng-odp] [API-NEXT PATCH 3/4] linux-gen: crypto: sha-1 and sha-512 not implemented yet

2017-02-22 Thread Petri Savolainen
Explicitly set capabilities to zero. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index b53b0fc..fcbabd1 100644 --- a/platform/linux

[lng-odp] [API-NEXT PATCH 0/4] Add sha-1 and sha-512

2017-02-22 Thread Petri Savolainen
Add new algorithm enumerations so that vendor IPSEC implementations and IPSEC test applications can proceed. Odp-linux crypto implementation and validation tests follow later. Petri Savolainen (4): abi: event: add ODP_EVENT_IPSEC_RESULT api: crypto: add sha-1 and sha-512 enumerations

[lng-odp] [PATCH 3/3] linux-gen: dependencies: update cunit install instructions

2017-02-21 Thread Petri Savolainen
Add missing commands and update instructions for installing into default location for 'make distcheck'. Signed-off-by: Petri Savolainen --- DEPENDENCIES | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES ind

[lng-odp] [PATCH 2/3] helper: pkgconfig: remove linux-generic from helper lib name

2017-02-21 Thread Petri Savolainen
Helper library should be built ABI compatible when it's part of a distro. There's no need to have implementation specific helper libs. Those would be needed only if non-ABI compat helper libraries need to be distributed. Signed-off-by: Petri Savolainen --- co

[lng-odp] [PATCH 1/3] helper: linux: add common linux helper file

2017-02-21 Thread Petri Savolainen
Added common helper file for backwards compatibility. This file includes all headers under helper/linux directory. It's installed only with --enable-helper-linux configuration option. Signed-off-by: Petri Savolainen --- helper/Makefile.am| 3 +++ helper/include/odp/h

[lng-odp] [API-NEXT PATCH 1/2] api: pktio: add parser configuration

2017-02-17 Thread Petri Savolainen
-off-by: Petri Savolainen --- include/odp/api/spec/packet_io.h | 36 1 file changed, 36 insertions(+) diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h index 85cd6d1..cec1f22 100644 --- a/include/odp/api/spec/packet_io.h +++ b

[lng-odp] [API-NEXT PATCH 2/2] linux-gen: pktio: parser default config

2017-02-17 Thread Petri Savolainen
Fill default parser configuration and capability. All pktios use same parser code, so the capability is the same (all layers). Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_packet_io.c| 13 +++-- test/common_plat/validation/api/pktio/pktio.c | 2 ++ 2 files

[lng-odp] [API-NEXT PATCH] linux-gen: ipsec: add stubs for functions

2017-02-17 Thread Petri Savolainen
Added stubs for functions so that applications can be built already. A proper implementation follows later on. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_ipsec.c | 111 + 1 file changed, 111 insertions(+) diff --git a/platform/linux

[lng-odp] [PATCH] linux-gen: abi: add symlink to arch specific dir

2017-02-16 Thread Petri Savolainen
Added symbolic link to the installed include directory. The link points to the arch specific abi dir, so that application does not need to add the arch specific dir into its makefile. Signed-off-by: Petri Savolainen --- configure.ac | 2 ++ platform/linux-generic

[lng-odp] [API-NEXT PATCH v2 3/4] Revert "linux-generic: packet: implement reference apis"

2017-02-15 Thread Petri Savolainen
This reverts commit 22b3986fea090986625f3255d57b64de35bbc475. --- .../linux-generic/include/odp_packet_internal.h| 85 +--- platform/linux-generic/odp_packet.c| 536 - 2 files changed, 107 insertions(+), 514 deletions(-) diff --git a/platform/linux-generic

[lng-odp] [API-NEXT PATCH v2 2/4] validation: packet: remove non compatible tests

2017-02-15 Thread Petri Savolainen
Tests for bad inputs are not compatible to the spec. Out-of-range values cause undefined results and must not be tested in validation suite. Remove reference checks that do not comply anymore to the new odp_packet_has_ref() specification. Signed-off-by: Petri Savolainen --- test/common_plat

[lng-odp] [API-NEXT PATCH v2 0/4] Packet references as copy

2017-02-15 Thread Petri Savolainen
long as performance and code simplicity are not sacrificed. v2: - highlight in API that zero copy is default behaviour - simplified odp_packet_ref_static() implementation Petri Savolainen (4): api: packet: references may be implemented as copy validation: packet: remove non compatible tests

[lng-odp] [API-NEXT PATCH v2 1/4] api: packet: references may be implemented as copy

2017-02-15 Thread Petri Savolainen
Some implementations may implement new references as packet copy. odp_packet_has_ref() will return 0 for copies, since those are unique packets. Signed-off-by: Petri Savolainen --- include/odp/api/spec/packet.h | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff

[lng-odp] [API-NEXT PATCH v2 4/4] linux-gen: packet: implement references as copy

2017-02-15 Thread Petri Savolainen
Implement packet references API as packet copy. This is the simplest way to support the API, as other packet functions are not affected at all. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_packet.c | 74 + 1 file changed, 74 insertions

[lng-odp] [API-NEXT PATCH 3/4] Revert "linux-generic: packet: implement reference apis"

2017-02-13 Thread Petri Savolainen
This reverts commit 22b3986fea090986625f3255d57b64de35bbc475. --- .../linux-generic/include/odp_packet_internal.h| 85 +--- platform/linux-generic/odp_packet.c| 536 - 2 files changed, 107 insertions(+), 514 deletions(-) diff --git a/platform/linux-generic

[lng-odp] [API-NEXT PATCH 2/4] validation: packet: remove non compatible tests

2017-02-13 Thread Petri Savolainen
Tests for bad inputs are not compatible to the spec. Out-of-range values cause undefined results and must not be tested in validation suite. Remove reference checks that do not comply anymore to the new odp_packet_has_ref() specification. Signed-off-by: Petri Savolainen --- test/common_plat

[lng-odp] [API-NEXT PATCH 1/4] api: packet: references may be implemented as copy

2017-02-13 Thread Petri Savolainen
Some implementations may implement new references as packet copy. odp_packet_has_ref() will return 0 for copies, since those are unique packets. Signed-off-by: Petri Savolainen --- include/odp/api/spec/packet.h | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff

[lng-odp] [API-NEXT PATCH 0/4] Packet references as copy

2017-02-13 Thread Petri Savolainen
long as performance and code simplicity are not sacrificed. Petri Savolainen (4): api: packet: references may be implemented as copy validation: packet: remove non compatible tests Revert "linux-generic: packet: implement reference apis" linux-gen: packet: implement referenc

[lng-odp] [API-NEXT PATCH 4/4] linux-gen: packet: implement references as copy

2017-02-13 Thread Petri Savolainen
Implement packet references API as packet copy. This is the simplest way to support the API, as other packet functions are not affected at all. Signed-off-by: Petri Savolainen --- platform/linux-generic/odp_packet.c | 78 + 1 file changed, 78 insertions

[lng-odp] [PATCH 2/5] validation: packet: print reason for suite init failure

2017-02-08 Thread Petri Savolainen
Knowing the reason for suite init function failure helps in debugging. Signed-off-by: Petri Savolainen --- test/common_plat/validation/api/packet/packet.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/test/common_plat/validation/api/packet/packet.c

[lng-odp] [PATCH 4/5] test: l2fwd script: limit number of generator cpus

2017-02-08 Thread Petri Savolainen
During 'make check' run generator on up to four cpus. Generator on all cpus was an overkill compared to l2fwd on two cpus. Generator and l2fwd still share cpus (on odp-linux) as cpumask_default_worker() returns the same cpumask for both. Signed-off-by: Petri Savolainen --- test/c

[lng-odp] [PATCH 3/5] test: generator: various improvements

2017-02-08 Thread Petri Savolainen
debugging easier. Signed-off-by: Petri Savolainen --- example/generator/odp_generator.c | 77 ++- 1 file changed, 51 insertions(+), 26 deletions(-) diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 6ac8f2d..8062d87 100644

[lng-odp] [PATCH 1/5] test: l2fwd: add pktio driver print out

2017-02-08 Thread Petri Savolainen
Print out pktio driver name in start up. Driver name (e.g. dpdk or netmap) helps in checking that correct pktio device started. Signed-off-by: Petri Savolainen --- test/common_plat/performance/odp_l2fwd.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test

[lng-odp] [PATCH 5/5] test: l2fwd: use packet_data

2017-02-08 Thread Petri Savolainen
Since l2fwd can assume that all packets are Ethernet. Also odp_packet_data() points to the first byte of the frame directly after packet input. Signed-off-by: Petri Savolainen --- test/common_plat/performance/odp_l2fwd.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff

[lng-odp] [PATCH 0/5] Packet test fixes

2017-02-08 Thread Petri Savolainen
Various fixes and development of packet related tests done during packet inline implementation. Better print outs, etc make it easier to debug packet implementation bugs. Petri Savolainen (5): test: l2fwd: add pktio driver print out validation: packet: print reason for suite init failure

[lng-odp] [PATCH v2 4/5] linux-gen: packet: inline functions

2017-02-08 Thread Petri Savolainen
Added first inlined packet functions. Functions are allways used inlined within the implementation. Applications see inlined versions only when ABI compatibility is disabled. Signed-off-by: Petri Savolainen --- platform/linux-generic/Makefile.am | 2 + platform/linux-generic

[lng-odp] [PATCH v2 1/5] linux-gen: inline: rename _STATIC to _ODP_INLINE

2017-02-08 Thread Petri Savolainen
This define is visible to applications through API headers. Use _ODP prefix to avoid name space collision. Also "inline" describes better the purpose of the macro than "static". Signed-off-by: Petri Savolainen --- .../include/odp/api/plat/atomic_inli

[lng-odp] [PATCH v2 5/5] linux-gen: packet: inline flag functions

2017-02-08 Thread Petri Savolainen
Added first inlined packet flag functions. Functions are allways used inlined within the implementation. Applications see inlined versions only when ABI compatibility is disabled. Signed-off-by: Petri Savolainen --- platform/linux-generic/Makefile.am | 2 + .../linux-generic

[lng-odp] [PATCH v2 3/5] linux-gen: packet: packet handle is hdr pointer

2017-02-08 Thread Petri Savolainen
not needed. Signed-off-by: Petri Savolainen --- .../include/odp/api/plat/packet_types.h| 2 +- .../linux-generic/include/odp_packet_internal.h| 2 +- platform/linux-generic/odp_packet.c| 163 - 3 files changed, 96 insertions(+), 71 deletions

[lng-odp] [PATCH v2 0/5] Packet function inline

2017-02-08 Thread Petri Savolainen
. odp_packet_len() from 9 to 4 cycles per call) and l2fwd (packet rate +20%). v2: * Moved test code changes into a separate patch set Petri Savolainen (5): linux-gen: inline: rename _STATIC to _ODP_INLINE linux-gen: ticketlock: inline also in application linux-gen: packet: packet handle is

[lng-odp] [PATCH v2 2/5] linux-gen: ticketlock: inline also in application

2017-02-08 Thread Petri Savolainen
Enable ticketlock function inlining in applications when not building for ABI compatibility. Signed-off-by: Petri Savolainen --- platform/linux-generic/Makefile.am | 1 + .../include/odp/api/plat/ticketlock_inlines.h | 19 +++- .../include/odp/api/plat

[lng-odp] [PATCH 03/10] linux-gen: packet: packet handle is hdr pointer

2017-02-06 Thread Petri Savolainen
not needed. Signed-off-by: Petri Savolainen --- .../include/odp/api/plat/packet_types.h| 2 +- .../linux-generic/include/odp_packet_internal.h| 2 +- platform/linux-generic/odp_packet.c| 163 - 3 files changed, 96 insertions(+), 71 deletions

[lng-odp] [PATCH 01/10] linux-gen: inline: rename _STATIC to _ODP_INLINE

2017-02-06 Thread Petri Savolainen
This define is visible to applications through API headers. Use _ODP prefix to avoid name space collision. Also "inline" describes better the purpose of the macro than "static". Signed-off-by: Petri Savolainen --- .../include/odp/api/plat/atomic_inli

[lng-odp] [PATCH 09/10] linux-gen: packet: inline functions

2017-02-06 Thread Petri Savolainen
Added first inlined packet functions. Functions are allways used inlined within the implementation. Applications see inlined versions only when ABI compatibility is disabled. Signed-off-by: Petri Savolainen --- platform/linux-generic/Makefile.am | 2 + platform/linux-generic

[lng-odp] [PATCH 10/10] linux-gen: packet: inline flag functions

2017-02-06 Thread Petri Savolainen
Added first inlined packet flag functions. Functions are allways used inlined within the implementation. Applications see inlined versions only when ABI compatibility is disabled. Signed-off-by: Petri Savolainen --- platform/linux-generic/Makefile.am | 2 + .../linux-generic

[lng-odp] [PATCH 05/10] validation: packet: print reason for suite init failure

2017-02-06 Thread Petri Savolainen
Knowing the reason for suite init function failure helps in debugging. Signed-off-by: Petri Savolainen --- test/common_plat/validation/api/packet/packet.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/test/common_plat/validation/api/packet/packet.c

<    1   2   3   4   5   6   7   8   9   10   >