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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
://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
-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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
801 - 900 of 1011 matches
Mail list logo