[lng-odp] [API-NEXT PATCH 04/11] api: sched: schedule param

2015-07-02 Thread Petri Savolainen
Extracted scheduler parameters into a new type and harmonized documentation of the types. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/queue.h | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/include/odp

[lng-odp] [API-NEXT PATCH 03/11] api: sched: removed GROUP_DEFAULT

2015-07-02 Thread Petri Savolainen
User should care which group of thread will process events from a queue. Removed default group and use all threads group instead. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/classifier/odp_classifier.c | 2 +- example/generator/odp_generator.c

[lng-odp] [API-NEXT PATCH 05/11] api: sched: moved scheduler types into new file

2015-07-02 Thread Petri Savolainen
New file is used to avoid include loop between queue and scheduler api. Both include the new file. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/queue.h| 93 +--- include/odp/api/schedule.h | 3

[lng-odp] [API-NEXT PATCH 07/11] api: sched: added schedule group create and destroy

2015-07-02 Thread Petri Savolainen
Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/schedule.h | 41 ++ .../include/odp/plat/schedule_types.h | 2 ++ .../linux-generic/include/odp/plat/thrmask_types.h | 2 +- 3 files changed, 44 insertions

[lng-odp] [API-NEXT PATCH 11/11] api: sched: added ordered context lock

2015-07-02 Thread Petri Savolainen
Lock protects a critical section in ordered context processing. Threads enter the section in order. Added dummy typedef for not breaking the build. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/schedule.h | 42

[lng-odp] [API-NEXT PATCH 08/11] api: sched: clarified synchronization context

2015-07-02 Thread Petri Savolainen
Clarified that a thread holds synchronization context between schedule calls. Next schedule call implicitly release the context. Clafified atomic and ordered context definitions. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/schedule.h | 18

[lng-odp] [API-NEXT PATCH 06/11] api: sched: added worker group

2015-07-02 Thread Petri Savolainen
The predefined group includes all worker threads and is automanically updated. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/schedule_types.h | 7 +++ platform/linux-generic/include/odp/plat/schedule_types.h | 1 + 2 files changed, 8

[lng-odp] [API-NEXT PATCH] api: init: added thread count params

2015-06-30 Thread Petri Savolainen
Added max number of worker/control threads as global init parameter. Implementation can e.g. optimize it's per worker thread resource reservation or configuration accordingly. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/init.h | 13 ++--- 1 file changed

[lng-odp] [API-NEXT PATCH] api: doc: doxygen grouping clean up

2015-06-12 Thread Petri Savolainen
Cleaned Doxygen documentation grouping. Corrected wrong groupings and created new groups when needed. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/buffer.h| 11 --- include/odp/api/config.h

[lng-odp] [API-NEXT PATCH 1/4] api: thrmask: added thread mask

2015-06-12 Thread Petri Savolainen
Thread IDs and masks are used to control thread access to various resources. Linux generic implementation reuse cpumask implementation. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp.h | 1 + include/odp/api/thrmask.h

[lng-odp] [API-NEXT PATCH 2/4] thread: updated thread mask handling

2015-06-12 Thread Petri Savolainen
Linux generic thread mask handling uses thrmask API. Added worker and control masks for easy implementation of functions returning those masks. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- platform/linux-generic/include/odp_internal.h | 3 +- platform/linux-generic/odp_init.c

[lng-odp] [API-NEXT PATCH 4/4] thread: implemented thrmask_worker and control

2015-06-12 Thread Petri Savolainen
Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- platform/linux-generic/odp_thread.c | 28 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/platform/linux-generic/odp_thread.c b/platform/linux-generic/odp_thread.c index 42afc5f..9905c78

[lng-odp] [API-NEXT PATCH 3/4] thread: implemented odp_thread_type

2015-06-12 Thread Petri Savolainen
Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- platform/linux-generic/odp_thread.c | 5 + 1 file changed, 5 insertions(+) diff --git a/platform/linux-generic/odp_thread.c b/platform/linux-generic/odp_thread.c index 85ca047..42afc5f 100644 --- a/platform/linux-generic

[lng-odp] [API-NEXT PATCH v3 2/3] api: cpumask: added default masks

2015-06-09 Thread Petri Savolainen
Added default cpumask functions for worker and control threads. These will replace odph_linux_cpumask_default() helper. CPU masks and IDs are system specific, API is generic. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/cpumask.h| 24

[lng-odp] [API-NEXT PATCH v3 1/3] api: cpumask: added cpumask_setall

2015-06-09 Thread Petri Savolainen
The call sets all possible CPUs in the mask. It's system specific which CPUs are actually available to the application. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/cpumask.h| 15 +-- platform/linux-generic/odp_cpumask.c | 8 2

[lng-odp] [API-NEXT PATCH v3 3/3] api: helper: deleted odph_linux_cpumask_default

2015-06-09 Thread Petri Savolainen
The linux specific helper was replaced by default cpumask calls (odp_cpumask_def_worker()) in the cpumask API. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/classifier/odp_classifier.c | 7 ++- example/generator/odp_generator.c | 7 ++- example

[lng-odp] [API-NEXT PATCH v2 2/3] api: cpumask: added default masks

2015-06-05 Thread Petri Savolainen
Added default cpumask functions for worker and control threads. These will replace odph_linux_cpumask_default() helper. CPU masks and IDs are system specific, API is generic. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/cpumask.h| 24

[lng-odp] [API-NEXT PATCH v2 3/3] api: helper: deleted odph_linux_cpumask_default

2015-06-05 Thread Petri Savolainen
The linux specific helper was replaced by default cpumask calls (odp_cpumask_def_worker()) in the cpumask API. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/classifier/odp_classifier.c | 7 ++- example/generator/odp_generator.c | 7 ++- example

[lng-odp] [API-NEXT PATCH v2 1/3] api: cpumask: added cpumask_setall

2015-06-05 Thread Petri Savolainen
The call sets all possible CPUs in the mask. It's system specific which CPUs are actually available to the application. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/cpumask.h| 15 +-- platform/linux-generic/odp_cpumask.c | 8 2

[lng-odp] [API-NEXT PATCH 2/3] api: cpumask: added default masks

2015-06-03 Thread Petri Savolainen
Added default cpumask functions for worker and control threads. These will replace odph_linux_cpumask_default() helper. CPU masks and IDs are system specific, API is generic. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/cpumask.h| 22

[lng-odp] [API-NEXT PATCH 1/3] api: cpumask: added cpumask_setall

2015-06-03 Thread Petri Savolainen
The call sets all possible CPUs in the mask. It's system specific which CPUs are actually available to the application. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/cpumask.h| 15 +-- platform/linux-generic/odp_cpumask.c | 8 2

[lng-odp] [API-NEXT PATCH 3/3] api: helper: deleted odph_linux_cpumask_default

2015-06-03 Thread Petri Savolainen
The linux specific helper was replaced by default cpumask calls (odp_cpumask_def_worker()) in the cpumask API. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/classifier/odp_classifier.c | 7 ++- example/generator/odp_generator.c | 7 ++- example

[lng-odp] [API-NEXT PATCH v2 4/4] api: init: added thread type to local init

2015-05-08 Thread Petri Savolainen
User needs to select the thread type (worker or control) of the initialized thread. Implementation may reserve HW direct access only to worker threads, while control threads share HW access, etc. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/classifier/odp_classifier.c

[lng-odp] [API-NEXT PATCH v2 3/4] api: thread: added thread type

2015-05-08 Thread Petri Savolainen
Two thread types are defined: worker and control threads. API calls from a worker thread should be throughput and latency optimized, while the second one is not so sensitive to call overheads and latency. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/thread.h

[lng-odp] [API-NEXT PATCH v2 1/4] style: init api: documentation clean up

2015-05-08 Thread Petri Savolainen
Organized doxygen tags and line feeds for better source code and doxygen doc readabilibty. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/init.h | 92 ++ 1 file changed, 47 insertions(+), 45 deletions(-) diff --git

[lng-odp] [API-NEXT PATCH v2 2/4] api: init: use const pointer types

2015-05-08 Thread Petri Savolainen
odp_init_global() parameters are only for input, function won't modify param content. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/init.h| 3 ++- platform/linux-generic/odp_init.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

[lng-odp] [API-NEXT PATCH v2 0/4] Init API and thread type

2015-05-08 Thread Petri Savolainen
documentation in init.h * Changed odp_init_global params to const pointer types Petri Savolainen (4): style: init api: documentation clean up api: init: use const pointer types api: thread: added thread type api: init: added thread type to local init example/classifier/odp_classifier.c

[lng-odp] [PATCH 1/3] example: classifier: remove extra local init

2015-05-07 Thread Petri Savolainen
Worker threads are created with odph_linux_pthread_create() which calls odp_local_init() before entering the function. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/classifier/odp_classifier.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/example/classifier

[lng-odp] [API-NEXT PATCH v3 3/5] api: packet_io: added odp_pktio_param_t

2015-05-05 Thread Petri Savolainen
Packet IO interface level parameters are needed e.g. to select input mode. User must select and use one input mode (sched, poll or recv) per pktio interface. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/classifier/odp_classifier.c| 6 +++- example

[lng-odp] [API-NEXT PATCH v3 4/5] api: packet_io: added parse mode

2015-05-05 Thread Petri Savolainen
Application can indicate which packet parsing results it is interested in (all or none). Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 12 1 file changed, 12 insertions(+) diff --git a/include/odp/api/packet_io.h b/include/odp/api

[lng-odp] [API-NEXT PATCH v3 2/5] api: packet_io: remove excess references to ODP

2015-05-05 Thread Petri Savolainen
All handles are ODP types, no need to repeat that. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api

[lng-odp] [API-NEXT PATCH v3 0/5] Packet IO API additions

2015-05-05 Thread Petri Savolainen
Reviewed-by: Robbie King robk...@cisco.com v3: * rebased * removed two empty lines v2: * removed selected parse option Petri Savolainen (5): api: packet_io: change word instance to interface api: packet_io: remove excess references to ODP api: packet_io: added odp_pktio_param_t

[lng-odp] [API-NEXT PATCH v3 5/5] api: packet_io: added start and stop

2015-05-05 Thread Petri Savolainen
packets * odp_pktio_stop() disables packet input/output * drain remaining packets from queues * remove / destroy input queues * odp_pktio_close() destroys the pktio interface object Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 20

[lng-odp] [API-NEXT PATCH v3 1/5] api: packet_io: change word instance to interface

2015-05-05 Thread Petri Savolainen
Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index 89356a6..8e23630 100644 --- a/include/odp/api/packet_io.h +++ b

[lng-odp] [API-NEXT PATCH v4 2/4] api: packet: removed odp_packet_user_u64

2015-05-05 Thread Petri Savolainen
Simplified the API by removing user_u64 option. User has now room for a pointer (or upto intptr_t sized variable) and a configurable sized user_area. Both can be used at the same time. User has to use the user_area when more space than sizeof(intptr_t) bytes is needed. Signed-off-by: Petri

[lng-odp] [API-NEXT PATCH v4 4/4] style: moved pool type first in pool_param

2015-05-05 Thread Petri Savolainen
Type + union highlights the usage better than union + type. Less packed structure is likely not an issue, since pools are few. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/pool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include

[lng-odp] [API-NEXT PATCH v4 1/4] api: packet: rename user_data to user_area

2015-05-05 Thread Petri Savolainen
Term area highlights better that the per packet user area is fixed in size and position. E.g. odp_packet_data(), odp_packet_seg_data() return pointers which are (likely) modified during packet processing. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet.h

[lng-odp] [API-NEXT PATCH v4 3/4] style: pool_param doxygen comments

2015-05-05 Thread Petri Savolainen
Moved comments into separate lines for better readability (more chars per line). Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/pool.h | 66 ++ 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/include

[lng-odp] [API-NEXT PATCH v3 3/4] style: pool_param doxygen comments

2015-05-05 Thread Petri Savolainen
Moved comments into separate lines for better readability (more chars per line). Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/pool.h | 66 ++ 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/include

[lng-odp] [API-NEXT PATCH v3 4/4] style: moved pool type first in pool_param

2015-05-05 Thread Petri Savolainen
Type + union highlights the usage better than union + type. Less packed structure is likely not an issue, since pools are few. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/pool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include

[lng-odp] [API-NEXT PATCH v3 2/4] api: packet: removed odp_packet_user_u64

2015-05-05 Thread Petri Savolainen
Simplified the API by removing user_u64 option. User has now room for a pointer (or upto intptr_t sized variable) and a configurable sized user_area. Both can be used at the same time. User has to use the user_area when more space than sizeof(intptr_t) bytes is needed. Signed-off-by: Petri

[lng-odp] [API-NEXT PATCH v3 1/4] api: packet: rename user_data to user_area

2015-05-05 Thread Petri Savolainen
Term area highlights better that the per packet user area is fixed in size and position. E.g. odp_packet_data(), odp_packet_seg_data() return pointers which are (likely) modified during packet processing. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet.h

[lng-odp] [API-NEXT PATCH 2/2] api: init: added thread type to local init

2015-04-27 Thread Petri Savolainen
User needs to select the thread type (worker or control) of the initialized thread. Implementation may reserve HW direct access only to worker threads, while control threads share HW access, etc. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/generator/odp_generator.c

[lng-odp] [API-NEXT PATCH 1/2] api: thread: added thread type

2015-04-27 Thread Petri Savolainen
Two thread types are defined: worker and control threads. API calls from a worker thread should be throughput and latency optimized, while the second one is not so sensitive to call overheads and latency. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/thread.h

[lng-odp] [API-NEXT PATCH v2 2/4] api: packet: removed odp_packet_user_u64

2015-04-23 Thread Petri Savolainen
Simplified the API by removing user_u64 option. User has now room for a pointer (or upto intptr_t sized variable) and a configurable sized user_area. Both can be used at the same time. User has to use the user_area when more space than sizeof(intptr_t) bytes is needed. Signed-off-by: Petri

[lng-odp] [API-NEXT PATCH v2 1/4] api: packet: rename user_data to user_area

2015-04-23 Thread Petri Savolainen
Term area highlights better that the per packet user area is fixed in size and position. E.g. odp_packet_data(), odp_packet_seg_data() return pointers which are (likely) modified during packet processing. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet.h

[lng-odp] [API-NEXT PATCH v2 4/4] style: moved pool type first in pool_param

2015-04-23 Thread Petri Savolainen
Type + union highlights the usage better than union + type. Less packed structure is likely not an issue, since pools are few. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/pool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include

[lng-odp] [API-NEXT PATCH v2 5/5] api: packet_io: added start and stop

2015-04-23 Thread Petri Savolainen
packets * odp_pktio_stop() disables packet input/output * drain remaining packets from queues * remove / destroy input queues * odp_pktio_close() destroys the pktio interface object Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 20

[lng-odp] [API-NEXT PATCH v2 1/5] api: packet_io: change word instance to interface

2015-04-23 Thread Petri Savolainen
Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index e960f10..5446999 100644 --- a/include/odp/api/packet_io.h

[lng-odp] [API-NEXT PATCH v2 2/5] api: packet_io: remove excess references to ODP

2015-04-23 Thread Petri Savolainen
All handles are ODP types, no need to repeat that. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api

[lng-odp] [API-NEXT PATCH v2 3/5] api: packet_io: added odp_pktio_param_t

2015-04-23 Thread Petri Savolainen
Packet IO interface level parameters are needed e.g. to select input mode. User must select and use one input mode (sched, poll or recv) per pktio interface. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/generator/odp_generator.c | 6 +++- example/ipsec

[lng-odp] [API-NEXT PATCH 1/4] api: packet: rename user_data to user_area

2015-04-23 Thread Petri Savolainen
Term area highlights better that the per packet user area is fixed in size and position. E.g. odp_packet_data(), odp_packet_seg_data() return pointers which are (likely) modified during packet processing. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet.h

[lng-odp] [API-NEXT PATCH 2/4] api: packet: removed odp_packet_user_u64

2015-04-23 Thread Petri Savolainen
Simplified the API by removing user_u64 option. User has now room for a pointer (or upto intptr_t sized variable) and a configurable sized user_area. Both can be used at the same time. User has to use the user_area when more space than sizeof(intptr_t) bytes is needed. Signed-off-by: Petri

[lng-odp] [API-NEXT PATCH 3/4] style: pool_param doxygen comments

2015-04-23 Thread Petri Savolainen
Moved comments into separate lines for better readability (more chars per line). Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/pool.h | 55 -- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/include

[lng-odp] [API-NEXT PATCH 4/4] style: moved pool type first in pool_param

2015-04-23 Thread Petri Savolainen
Type + union highlights the usage better than union + type. Less packed structure is likely not an issue, since pools are few. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/pool.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include

[lng-odp] [PATCH 5/9] api: packet_io: added start and stop

2015-04-20 Thread Petri Savolainen
packets * odp_pktio_stop() disables packet input/output * drain remaining packets from queues * remove / destroy input queues * odp_pktio_close() destroys the pktio interface object Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 20

[lng-odp] [PATCH 4/9] api: packet_io: added parse mode

2015-04-20 Thread Petri Savolainen
Application can indicate which packet parsing results it is interested in (all, none or selected). Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_flags.h | 26 ++ include/odp/api/packet_io.h| 19 +++ 2 files

[lng-odp] [PATCH 2/9] api: packet_io: remove excess references to ODP

2015-04-20 Thread Petri Savolainen
All handles are ODP types, no need to repeat that. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api

[lng-odp] [PATCH 3/9] api: packet_io: added odp_pktio_param_t

2015-04-20 Thread Petri Savolainen
Packet IO interface level parameters are needed e.g. to select input mode. User must select and use one input mode (sched, poll or recv) per pktio interface. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/generator/odp_generator.c | 6 +++- example/ipsec

[lng-odp] [PATCH API-NEXT 3/5] api: packet_io: added odp_pktio_param_t

2015-04-20 Thread Petri Savolainen
Packet IO interface level parameters are needed e.g. to select input mode. User must select and use one input mode (sched, poll or recv) per pktio interface. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/generator/odp_generator.c | 6 +++- example/ipsec

[lng-odp] [PATCH API-NEXT 4/5] api: packet_io: added parse mode

2015-04-20 Thread Petri Savolainen
Application can indicate which packet parsing results it is interested in (all, none or selected). Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_flags.h | 26 ++ include/odp/api/packet_io.h| 19 +++ 2 files

[lng-odp] [PATCH API-NEXT 5/5] api: packet_io: added start and stop

2015-04-20 Thread Petri Savolainen
packets * odp_pktio_stop() disables packet input/output * drain remaining packets from queues * remove / destroy input queues * odp_pktio_close() destroys the pktio interface object Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 20

[lng-odp] [PATCH API-NEXT 2/5] api: packet_io: remove excess references to ODP

2015-04-20 Thread Petri Savolainen
All handles are ODP types, no need to repeat that. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api

[lng-odp] [PATCH 1/9] api: packet_io: change word instance to interface

2015-04-20 Thread Petri Savolainen
Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index e960f10..5446999 100644 --- a/include/odp/api/packet_io.h

[lng-odp] [RFC 8/8] api: packet_io: renamed odp_pktio_promisc_mode_set

2015-03-30 Thread Petri Savolainen
-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h| 30 +++--- platform/linux-generic/odp_packet_io.c | 2 +- test/validation/odp_pktio.c| 4 ++-- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git

[lng-odp] [RFC 5/8] api: packet_io: added packet input queue API definitions

2015-03-30 Thread Petri Savolainen
API changes enable multiple packet input queues and control hashing of incoming packets into those. Packet IO start and stop were added to have more controlled packet IO setup phase. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 88

[lng-odp] [RFC 6/8] api: packet_io: added odp_pktio_inq_hash_lookup

2015-03-30 Thread Petri Savolainen
Hash lookup is used to find the input queue for a packet. This information is needed e.g. to setup the queue context. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/include/odp/api

[lng-odp] [RFC 7/8] api: packet_io: added packet io control info

2015-03-30 Thread Petri Savolainen
Structure tells which packet io control operation are permitted on the interface. Some control operations may not be permitted from all interfaces (virtual functions). Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/packet_io.h | 31

[lng-odp] [RFC 1/8] api: schedule: reorganise scheduler type definition

2015-03-30 Thread Petri Savolainen
Moved scheduler parameters into separate header file, so that both queue and packet io API can refer those. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- include/odp/api/queue.h| 94 +- include/odp/api/schedule.h

[lng-odp] [RFC 4/8] api: packet_io: added odp_pktio_param_t

2015-03-30 Thread Petri Savolainen
Packet IO interface level parameters are needed e.g. to select input mode. User must select and use one input mode (sched, poll or recv) per pktio interface. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- example/generator/odp_generator.c | 6 +++- example/ipsec

[lng-odp] [PATCH v2 0/4] Schedule terminate

2015-03-26 Thread Petri Savolainen
v2: Addressed Mike's comments: modified TODO comments, renamed cls_enabled, queue type check returns an error in odp_pktio_inq_setdef() Petri Savolainen (4): linux-generic: scheduler: restructured queue and pktio integration linux-generic: schedule: terminate validation: schedule: added

[lng-odp] [PATCH v2 4/4] validation: schedule: exit schedule loop

2015-03-26 Thread Petri Savolainen
Added function to pause and exit the schedule loop according to the API. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- test/validation/odp_schedule.c | 21 + 1 file changed, 21 insertions(+) diff --git a/test/validation/odp_schedule.c b/test/validation

[lng-odp] [PATCH v2 1/4] linux-generic: scheduler: restructured queue and pktio integration

2015-03-26 Thread Petri Savolainen
queue. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- .../linux-generic/include/odp_packet_io_internal.h | 17 +- .../linux-generic/include/odp_queue_internal.h | 34 +-- .../linux-generic/include/odp_schedule_internal.h | 14 +- platform/linux-generic/odp_packet_io.c

[lng-odp] [PATCH v2 2/4] linux-generic: schedule: terminate

2015-03-26 Thread Petri Savolainen
Added clean up for pending schedule commands and queue destroys. Added error detection of non empty queues and pre-scheduled events. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- platform/linux-generic/odp_schedule.c | 82 ++- 1 file changed, 61

[lng-odp] [PATCH v2 3/4] validation: schedule: added queue destroy test

2015-03-26 Thread Petri Savolainen
The test creates one queue of each schedule sync type and destroys those. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- test/validation/odp_schedule.c | 64 ++ 1 file changed, 64 insertions(+) diff --git a/test/validation/odp_schedule.c b

[lng-odp] [PATCH 1/4] linux-generic: scheduler: restructured queue and pktio integration

2015-03-23 Thread Petri Savolainen
queue. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- .../linux-generic/include/odp_packet_io_internal.h | 17 +- .../linux-generic/include/odp_queue_internal.h | 34 +-- .../linux-generic/include/odp_schedule_internal.h | 14 +- platform/linux-generic/odp_packet_io.c

[lng-odp] [PATCH 4/4] validation: schedule: exit schedule loop

2015-03-23 Thread Petri Savolainen
Added function to pause and exit the schedule loop according to the API. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- test/validation/odp_schedule.c | 21 + 1 file changed, 21 insertions(+) diff --git a/test/validation/odp_schedule.c b/test/validation

[lng-odp] [PATCH 3/4] validation: schedule: added queue destroy test

2015-03-23 Thread Petri Savolainen
The test creates one queue of each schedule sync type and destroys those. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- test/validation/odp_schedule.c | 64 ++ 1 file changed, 64 insertions(+) diff --git a/test/validation/odp_schedule.c b

[lng-odp] [PATCH 2/4] linux-generic: schedule: terminate

2015-03-23 Thread Petri Savolainen
Added clean up for pending schedule commands and queue destroys. Added error detection of non empty queues and pre-scheduled events. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- platform/linux-generic/odp_schedule.c | 82 ++- 1 file changed, 61

[lng-odp] [PATCH 0/4] Schedule terminate

2015-03-23 Thread Petri Savolainen
The series applies on top of [PATCHv5 1/3] validation: schedule: free queues and pool. Petri Savolainen (4): linux-generic: scheduler: restructured queue and pktio integration linux-generic: schedule: terminate validation: schedule: added queue destroy test validation: schedule: exit

[lng-odp] [PATCH] validation: schedule: code clean up

2015-03-11 Thread Petri Savolainen
Cleaned up usage of buf count, thread args and globals. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- test/validation/odp_schedule.c | 102 - 1 file changed, 49 insertions(+), 53 deletions(-) diff --git a/test/validation/odp_schedule.c b

[lng-odp] [PATCH 2/2] validation: timer: added cancel test

2015-03-06 Thread Petri Savolainen
Added timeout cancel test that simply creates everything needed for requensting one timeout and then cancels that before it expires. The timeout user_ptr bug can be reproduced with this by uncommenting the user_ptr check. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- test

[lng-odp] [PATCH 1/2] validation: timer: use ODP_SHM_NULL

2015-03-06 Thread Petri Savolainen
Use ODP_SHM_NULL to select default shm memory in odp_pool_create(), instead of ODP_SHM_INVALID. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- test/validation/odp_timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/validation/odp_timer.c b/test

[lng-odp] [PATCH] validation: odp_scheduling: limit worker thread count

2015-03-05 Thread Petri Savolainen
threads. Signed-off-by: Petri Savolainen petri.savolai...@nokia.com --- test/performance/Makefile.am| 11 +-- test/performance/odp_scheduling_run | 15 +++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100755 test/performance/odp_scheduling_run diff

[lng-odp] [PATCH v2] linux-generic: thread: reuse thread ids

2015-03-02 Thread Petri Savolainen
://bugs.linaro.org/show_bug.cgi?id=1294 Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- v2: Removed white space and added link to the bug --- platform/linux-generic/odp_thread.c | 110 +--- 1 file changed, 76 insertions(+), 34 deletions(-) diff --git

[lng-odp] [PATCH] linux-generic: thread: reuse thread ids

2015-03-02 Thread Petri Savolainen
-by: Petri Savolainen petri.savolai...@linaro.org --- platform/linux-generic/odp_thread.c | 115 +--- 1 file changed, 81 insertions(+), 34 deletions(-) diff --git a/platform/linux-generic/odp_thread.c b/platform/linux-generic/odp_thread.c index c6813f5..bfdaaa2 100644

[lng-odp] [PATCH] api: packet_io: remove specific errno value

2015-02-26 Thread Petri Savolainen
Remove the specific value. This was the only errno value specified in the API. Add specific values when we have selected the set (and mechanism) of possible errno values for all APIs. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- include/odp/api/packet_io.h | 2 +- 1 file

[lng-odp] [PATCH 3/4] api: cpumask: replace ssize_t with int32_t

2015-02-25 Thread Petri Savolainen
ssize_t is a POSIX type. API definition must be pure C (C99). Signed 32 bits can hold larger values than size_t (64k) and ssize_t(32k) in minimum. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- include/odp/api/cpumask.h| 3 +-- platform/linux-generic/odp_cpumask.c

[lng-odp] [PATCH 2/4] api: packet_io: replace ssize_t with int

2015-02-25 Thread Petri Savolainen
ssize_t is a POSIX type. API definition must be pure C (C99). Int is at least 16 bits and can hold any mac address size. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- include/odp/api/packet_io.h| 6 ++ platform/linux-generic/odp_packet_io.c | 2 +- test

[lng-odp] [PATCH 4/4] api: crypto: remove posix dependency

2015-02-25 Thread Petri Savolainen
sys/types.h is a POSIX header file and must not be included from an API header. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- include/odp/api/crypto.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/odp/api/crypto.h b/include/odp/api/crypto.h index a71753c..bf0a410

[lng-odp] [PATCH 1/4] api: random: replace ssize_t with int32_t

2015-02-25 Thread Petri Savolainen
ssize_t is a POSIX type. API definition must be pure C (C99). Signed 32 bits can hold larger values than size_t (64k) and ssize_t(32k) in minimum. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- example/ipsec/odp_ipsec_cache.c | 4 ++-- include/odp/api/random.h

[lng-odp] [PATCH v2] api: scheduler: atomic and ordered definitions

2015-02-18 Thread Petri Savolainen
Improved documentation and definition of atomic and ordered queue synchronisation. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- This is the ordered queue definition (in patch format) promised in the call yesterday. --- include/odp/api/queue.h| 25

[lng-odp] [PATCH v3] api: scheduler: atomic and ordered definitions

2015-02-18 Thread Petri Savolainen
Improved documentation and definition of atomic and ordered queue synchronisation. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- This is the ordered queue definition (in patch format) promised in the call yesterday. --- include/odp/api/queue.h| 25

[lng-odp] [PATCH 1/2] api: scheduler: atomic and ordered definitions

2015-02-17 Thread Petri Savolainen
Improved documentation and definition of atomic and ordered queue synchronisation. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- This is the ordered queue definition (in patch format) promised in the call yesterday. --- include/odp/api/queue.h| 21

[lng-odp] [PATCH v3 3/3] api: config: Renamed ODP_CONFIG_PACKET_BUF_LEN_MIN

2015-02-12 Thread Petri Savolainen
. If ODP_CONFIG_PACKET_SEG_LEN_MIN equals _SEG_LEN_MAX, the implementation supports only one segment length value. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- include/odp/api/config.h | 20 +++- platform/linux-generic/include

[lng-odp] [PATCH v3 2/3] api: pool: Move from buffer to packet pool parameters

2015-02-12 Thread Petri Savolainen
Change implementation, examples and test to use the new packet pool parameters with ODP_POOL_PACKET type pools (instead of using buffer pool parameters). Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- example/generator/odp_generator.c | 9 +++--- example/ipsec

[lng-odp] [PATCH v3 1/3] api: pool: Added packet pool parameters

2015-02-12 Thread Petri Savolainen
provide 'num' packets Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- include/odp/api/pool.h | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h index b8c0f2e..66dc70e 100644 --- a/include/odp

[lng-odp] [PATCH v3 4/4] api: thread: Added odp_thread_count

2015-02-05 Thread Petri Savolainen
Improved thread id documentation and added odp_thread_count(), which returns number of active threads. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- include/odp/api/thread.h| 17 + platform/linux-generic/odp_thread.c | 4 2 files changed, 21

[lng-odp] [PATCH v3 2/4] api: cpu: Renamed odp_thread_cpu to odp_cpu_id

2015-02-05 Thread Petri Savolainen
This returns system specific cpu id. Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- example/timer/odp_timer_test.c | 2 +- include/odp/api/thread.h| 8 platform/linux-generic/odp_thread.c | 3 ++- test/performance/odp_scheduling.c | 2 +- test

[lng-odp] [PATCH v3 1/4] api: cpu: Added cpu.h

2015-02-05 Thread Petri Savolainen
This file contains cpu related API calls. The calls are renames from odp_thread_cpu() and odp_sys_cpu_count(). Signed-off-by: Petri Savolainen petri.savolai...@linaro.org --- include/odp.h| 1 + include/odp/api/cpu.h| 54

<    4   5   6   7   8   9   10   11   >