Use Linux cpu_set_t instead of odp_cpumask_t when passing cpus
to Linux system calls.
Signed-off-by: Petri Savolainen
---
helper/linux.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/helper/linux.c b/helper/linux.c
index 7904d5c..7dd26d2 100644
--- a
Use Linux cpu_set_t instead of odp_cpumask_t when passing cpus
to Linux system calls.
Signed-off-by: Petri Savolainen
---
helper/linux.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/helper/linux.c b/helper/linux.c
index 7904d5c..7dd26d2 100644
--- a
Many helper files included ODP internal headers and defined
types or functions with odp_ prefix. A helper can be consider
as part of application - from ODP headers it may include only
odp.h and it must not define anything with odp_ prefix.
Signed-off-by: Petri Savolainen
---
example/generator
Convert some of the examples and tests to use MAC and IPv4
address parse functions instead of implementing those multiple
times. There are still some examples to convert, but those would
require a bit more effort.
Signed-off-by: Petri Savolainen
---
example/classifier/odp_classifier.c | 30
IPv4 address parse function is commonly needed by
test applications. A common parse function harmonizes the
definition IPv4 address as a command line parameter.
Signed-off-by: Petri Savolainen
---
helper/Makefile.am | 1 +
helper/include/odp/helper/ip.h | 22 +-
helper/ip.c
Ethernet MAC address parse function is commonly needed by
test applications. A common parse function harmonizes the
definition of MAC address as a command line parameter.
Signed-off-by: Petri Savolainen
---
helper/Makefile.am | 1 +
helper/eth.c| 36
Added missing implementation of implementation name string and
call it from validation tests and couple of other apps.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_impl.c | 8
test/performance/odp_l2fwd.c | 4 +++-
test/performance
nize those.
This enables op_mode extensions in the future (e.g. dedicated
single thread mode).
Signed-off-by: Petri Savolainen
---
include/odp/api/packet_io.h| 55 --
platform/linux-generic/odp_packet_io.c | 2 ++
platform/linux-generic/pktio/netm
()
odp_pktio_pktin_queues()odp_pktin_queue()
odp_pktio_pktout_queues() odp_pktout_queue()
odp_pktio_input_queue_param_init() odp_pktin_queue_param_init()
odp_pktio_output_queue_param_init() odp_pktout_queue_param_init()
Signed-off-by: Petri Savolainen
---
include/odp/api
enq/deq calls).
There is possibility to add modes later on. For example,
a dedicated, single thread mode could be added, which would pin
a queue (enq or deq end) to a dedicated thread.
Signed-off-by: Petri Savolainen
---
include/odp/api/queue.h| 51
Added test for memory compare.
Signed-off-by: Petri Savolainen
---
test/validation/std_clib/std_clib.c | 38 +
1 file changed, 38 insertions(+)
diff --git a/test/validation/std_clib/std_clib.c
b/test/validation/std_clib/std_clib.c
index e53ad39..e69bc39
Memory compare is a commonly used C library function on
data plane applications. This enables using HW offload
(e.g. vector unit) for compare operations.
Signed-off-by: Petri Savolainen
---
include/odp/api/std_clib.h| 18 ++
platform/linux-generic/include/odp
Highlight that application must ensure that there's no
race while calling init functions. Also lock free call
will never set op.init flag, since init call will not need
to implement locking or other (lock free) synchronization.
Signed-off-by: Petri Savolainen
---
include/odp/api/ato
Synchronizers suite was split into atomic, lock and barrier
suites.
Signed-off-by: Petri Savolainen
---
test/validation/atomic/atomic.c | 16
test/validation/atomic/atomic.h | 12 ++--
test/validation/barrier/barrier.h | 4 ++--
test/validation/lock/lock.h
Test atomic_op bit fields and odp_atomic_lock_free_u64().
Signed-off-by: Petri Savolainen
---
test/validation/atomic/atomic.c | 107
test/validation/atomic/atomic.h | 1 +
2 files changed, 108 insertions(+)
diff --git a/test/validation/atomic/atomic.c
As poll queue type was renamed, update variable names and
documentation accordingly.
Signed-off-by: Petri Savolainen
---
test/performance/odp_l2fwd.c | 30 +++---
test/performance/odp_pktio_perf.c | 22 +++---
test/performance
quire
definition of any other queue params (e.g. sched params).
Signed-off-by: Petri Savolainen
---
example/classifier/odp_classifier.c| 12 +++
example/generator/odp_generator.c | 9 ++---
example/ipsec/odp_ipsec.c
to _DIRECT, which
is future proof to support additional direct calls for packet
input/output.
Signed-off-by: Petri Savolainen
---
example/ipsec/odp_ipsec.c | 2 +-
example/packet/odp_pktio.c | 4 +-
include/odp/api/packet_io.h
Fixed odp_queue_type_t to be an enum. Type need to be fixed
so that it can be added as part of odp_queue_param_t.
Signed-off-by: Petri Savolainen
---
include/odp/api/queue.h| 43 +-
.../linux-generic/include/odp/plat/queue_types.h | 8
2
plication
can directly dequeue (instead of using the scheduler).
Signed-off-by: Petri Savolainen
---
example/generator/odp_generator.c | 6 +++---
example/ipsec/odp_ipsec.c | 6 +++---
example/time/time_global_test.c
In practice, this type of queues are referred as "parallel queues"
instead of "none queues". Also "none" type is quite pessimistic
term, since scheduler may perform lots of HW offload also in this mode.
Signed-off-by: Petri Savolainen
---
example/classifier/odp_cl
create APIs (pool,
timer, tm, ...).
These modifications are preparation for removal of PKTIN and PKOUT queue types,
and the single queue pktio API (odp_pktio_inq_setdef(), etc).
Petri Savolainen (6):
api: sched: rename SCHED_SYNC_NONE to _PARALLEL
api: queue: rename QUEUE_TYPE_POLL to _PLAIN
Added packet flags for Ethernet and IP broad- and multicast.
For application, it's more effective to check a flag than all
destionation address bits.
Signed-off-by: Petri Savolainen
---
include/odp/api/packet_flags.h | 70 +-
1 file changed, 69 inser
Use full memory barrier from API instead of the internal
function.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_atomic_internal.h | 6 --
platform/linux-generic/odp_barrier.c | 8
2 files changed, 4 insertions(+), 10 deletions(-)
diff
Replace internal non-relaxed atomics with API calls. Timer and
spinlock were not converted since those use flags and 128 variables.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_pool_internal.h | 1 -
platform/linux-generic/odp_pool.c | 1 -
platform
Added validation test for all operations with non-relaxed
memory model. Mainly testing that functions are available.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 82 +++
test/validation/synchronizers/synchronizers.h | 1 +
2 files
Added validation test for CAS operations. Maintained the structure
of other atomic tests: one function increments and another decrements
a variable.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 83 +++
test/validation/synchronizers
Added validation test for exchange operations.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 71 +++
test/validation/synchronizers/synchronizers.h | 1 +
2 files changed, 72 insertions(+)
diff --git a/test/validation/synchronizers
Added validation tests for atomic max and min operations.
Results validation is a simple compare, since absolute min/max
values depend on the number of threads.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 111 --
test/validation
Implemented 32 and 64 bit atomic exchange operations.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 16
1 file changed, 16 insertions(+)
diff --git a/platform/linux-generic/include/odp/atomic.h
b/platform/linux-generic/include/odp/atomic.h
Added 32 and 64 bit atomic exchange operations in relaxed
memory ordering. These can be used e.g. to initialize a counter
while counting.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 27 +++
1 file changed, 27 insertions(+)
diff --git a/include/odp/api
Implemented 64 bit non-relaxed atomic operations. Additional
ordering is not needed in case of using ATOMIC_OP since it
includes both acquire and release ordering.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 83 +
1 file changed
Added 64 bit versions of the same set of non-relaxed atomic
operations that are already defined for 32 bit.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 99
1 file changed, 99 insertions(+)
diff --git a/include/odp/api/atomic.h
Implemented 32bit cas_rel and cas_acq_rel calls.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 37 ++---
1 file changed, 28 insertions(+), 9 deletions(-)
diff --git a/platform/linux-generic/include/odp/atomic.h
b/platform/linux
Added RELEASE and ACQUIRE-and-RELEASE versions of 32 bit CAS.
These are commonly needed operations in lock-free algorithms.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 86 +---
1 file changed, 67 insertions(+), 19 deletions(-)
diff
Rename release ordering from _rls_ to _rel_ since it matches
better with _acq_rel_, which is going to be used for C11
memory_order_acq_rel order.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h| 8
platform/linux-generic/include/odp/atomic.h | 6
validation test
v2:
* rebased on latest api-next
Petri Savolainen (13):
api: atomic: rename release ordering
api: atomic: added 32bit cas_rel and cas_acq_rel
linux-generic: atomic: 32bit cas_rel and cas_acq_rel
api: atomic: add non-relaxed 64bit operations
linux-generic: atomic: non
Re-order functions to get rid off (static) function prototypes
and improve code readability.
Signed-off-by: Petri Savolainen
---
test/performance/odp_l2fwd.c | 645 +--
1 file changed, 318 insertions(+), 327 deletions(-)
diff --git a/test/performance
Added poll queue mode (mode == 4), which uses poll type queues
for packet input. Configuration and functionality is very similar
to direct recv mode.
Signed-off-by: Petri Savolainen
---
test/performance/odp_l2fwd.c | 197 ---
1 file changed, 165
Use multiqueue recv for poll type input queues.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_packet_io.c | 11 ++-
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/platform/linux-generic/odp_packet_io.c
b/platform/linux-generic/odp_packet_io.c
index
Push generic parts of input/output queue config code to
upper level (into odp_packet_io.c).
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_packet_netmap.h | 7 +-
platform/linux-generic/odp_packet_io.c | 186 ++---
platform/linux-generic
Added support for poll type input queues.
Signed-off-by: Petri Savolainen
---
.../linux-generic/include/odp_queue_internal.h | 2 +-
platform/linux-generic/odp_packet_io.c | 23 ++
platform/linux-generic/odp_queue.c | 2 ++
3 files changed
From: Matias Elo
This is a bug fix for old API. Map pktin/pktout queues to
netmap rings in netmap_start() instead of
netmap_*put_queues_config() for backward compatibility with
inq_setdef API.
Signed-off-by: Matias Elo
---
platform/linux-generic/pktio/netmap.c | 18 --
1 file c
: netmap: map rings in netmap_start
Petri Savolainen (5):
linux-generic: pktio: re-organize queue config code
linux-generic: pktio: added poll type input queue
linux-generic: pktio: use multiqueue recv internally
test: l2fwd: re-organize functions
test: l2fwd: added poll queue mode
platform
Use full memory barrier from API instead of the internal
function.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_atomic_internal.h | 6 --
platform/linux-generic/odp_barrier.c | 8
2 files changed, 4 insertions(+), 10 deletions(-)
diff
Replace internal non-relaxed atomics with API calls. Timer and
spinlock were not converted since those use flags and 128 variables.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_pool_internal.h | 1 -
platform/linux-generic/odp_pool.c | 1 -
platform
Added validation test for all operations with non-relaxed
memory model. Mainly testing that functions are available.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 82 +++
test/validation/synchronizers/synchronizers.h | 1 +
2 files
Added validation test for exchange operations.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 54 +++
test/validation/synchronizers/synchronizers.h | 1 +
2 files changed, 55 insertions(+)
diff --git a/test/validation/synchronizers
Added validation test for CAS operations. Maintained the structure
of other atomic tests: one function increments and another decrements
a variable.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 83 +++
test/validation/synchronizers
Added validation tests for atomic max and min operations.
Results validation is a simple compare, since absolute min/max
values depend on the number of threads.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 111 --
test/validation
Added 32 and 64 bit atomic exchange operations in relaxed
memory ordering. These can be used e.g. to initialize a counter
while counting.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 27 +++
1 file changed, 27 insertions(+)
diff --git a/include/odp/api
Implemented 32 and 64 bit atomic exchange operations.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 16
1 file changed, 16 insertions(+)
diff --git a/platform/linux-generic/include/odp/atomic.h
b/platform/linux-generic/include/odp/atomic.h
Implemented 64 bit non-relaxed atomic operations. Additional
ordering is not needed in case of using ATOMIC_OP since it
includes both acquire and release ordering.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 83 +
1 file changed
Added 64 bit versions of the same set of non-relaxed atomic
operations that are already defined for 32 bit.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 99
1 file changed, 99 insertions(+)
diff --git a/include/odp/api/atomic.h
Added RELEASE and ACQUIRE-and-RELEASE versions of 32 bit CAS.
These are commonly needed operations in lock-free algorithms.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 86 +---
1 file changed, 67 insertions(+), 19 deletions(-)
diff
Implemented 32bit cas_rel and cas_acq_rel calls.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 37 ++---
1 file changed, 28 insertions(+), 9 deletions(-)
diff --git a/platform/linux-generic/include/odp/atomic.h
b/platform/linux
Rename release ordering from _rls_ to _rel_ since it matches
better with _acq_rel_, which is going to be used for C11
memory_order_acq_rel order.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h| 8
platform/linux-generic/include/odp/atomic.h | 6
Petri Savolainen (13):
api: atomic: rename release ordering
api: atomic: added 32bit cas_rel and cas_acq_rel
linux-generic: atomic: 32bit cas_rel and cas_acq_rel
api: atomic: add non-relaxed 64bit operations
linux-generic: atomic: non-relaxed 64bit operations
api: atomic: added relaxed
Use only one definition for posix extension level. _GNU_SOURCE
defines _POSIX_C_SOURCE based on glibc version, and is
the only definition needed under Linux.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 1 +
platform/linux-generic/arch/linux
Allways use _GNU_SOURCE instead of various _POSIX_C_SOURCE
defines.
Signed-off-by: Petri Savolainen
---
example/generator/odp_generator.c | 4 +++-
example/ipsec/odp_ipsec.c | 6 --
example/ipsec/odp_ipsec_fwd_db.c | 4 +++-
example/ipsec/odp_ipsec_sa_db.c | 4 +++-
example/ipsec
Removed odp_spin() and replaced usage with odp_cpu_pause().
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 1 -
platform/linux-generic/include/odp_spin_internal.h | 58 --
platform/linux-generic/odp_barrier.c | 4
Deleted odph_pause() and replaced usage with odp_cpu_pause()
calls.
Signed-off-by: Petri Savolainen
---
helper/Makefile.am | 1 -
helper/odph_pause.h | 54
helper/ring.c| 10 +++--
helper/test/Makefile.am | 2
Implemented pause as an inline function in a cpu arch dependent
header file.
Signed-off-by: Petri Savolainen
---
helper/Makefile.am| 2 ++
platform/linux-generic/Makefile.am| 4 +++-
platform/linux-generic/Makefile.inc | 2
These arch depedent files are not limited to cpu_cycle
calls implementation only.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 8 ++--
platform/linux-generic/arch/linux/odp_cpu_arch.c | 48 ++
platform/linux-generic/arch/linux
Pause is used in tight loops to reduce stress to the system.
Signed-off-by: Petri Savolainen
---
include/odp/api/cpu.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h
index 8a804d4..4cbaf58 100644
--- a/include/odp/api/cpu.h
+++ b
-by: Petri Savolainen
---
include/odp/api/packet.h | 82 +++-
1 file changed, 74 insertions(+), 8 deletions(-)
diff --git a/include/odp/api/packet.h b/include/odp/api/packet.h
index 8651a47..7d315ba 100644
--- a/include/odp/api/packet.h
+++ b/include/odp
er data is constant. */
odp_pktio_send_queue(pktout, pkt, NUM_MCAST);
}
Petri Savolainen (1):
api: packet: add packet segment manipulation
include/odp/api/packet.h | 82 +++-
1 file changed, 74 insertions(+), 8 dele
Added poll queue mode (mode == 4), which uses poll type queues
for packet input. Configuration and functionality is very similar
to direct recv mode.
Signed-off-by: Petri Savolainen
---
test/performance/odp_l2fwd.c | 188 ---
1 file changed, 160
Re-order functions to get rid off (static) function prototypes
and improve code readability.
Signed-off-by: Petri Savolainen
---
test/performance/odp_l2fwd.c | 645 +--
1 file changed, 318 insertions(+), 327 deletions(-)
diff --git a/test/performance
Added support for poll type input queues.
Signed-off-by: Petri Savolainen
---
.../linux-generic/include/odp_queue_internal.h | 2 +-
platform/linux-generic/odp_packet_io.c | 23 ++
platform/linux-generic/odp_queue.c | 2 ++
3 files changed
Push generic parts of input/output queue config code to
upper level (into odp_packet_io.c).
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_packet_netmap.h | 7 +-
platform/linux-generic/odp_packet_io.c | 186 ++---
platform/linux-generic
Use multiqueue recv for poll type input queues.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/odp_packet_io.c | 11 ++-
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/platform/linux-generic/odp_packet_io.c
b/platform/linux-generic/odp_packet_io.c
index
This patch set adds support for multi-queue pktio for poll mode queues.
v3:
* Rebased
v2:
* Bug correction in patch 2/6: bad netmap initialization when using
the old API.
Matias Elo (1):
linux-generic: netmap: map rings in netmap_start
Petri Savolainen (5):
linux-generic: pktio
From: Matias Elo
This is a bug fix for old API. Map pktin/pktout queues to
netmap rings in netmap_start() instead of
netmap_*put_queues_config() for backward compatibility with
inq_setdef API.
Signed-off-by: Matias Elo
---
platform/linux-generic/pktio/netmap.c | 18 --
1 file c
Replace internal non-relaxed atomics with API calls. Timer and
spinlock were not converted since those use flags and 128 variables.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_pool_internal.h | 1 -
platform/linux-generic/odp_pool.c | 1 -
platform
Added validation tests for atomic max and min operations.
Results validation is a simple compare, since absolute min/max
values depend on the number of threads.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 111 --
test/validation
Use full memory barrier from API instead of the internal
function.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp_atomic_internal.h | 6 --
platform/linux-generic/odp_barrier.c | 7 +++
2 files changed, 3 insertions(+), 10 deletions(-)
diff --git
Added validation test for exchange operations.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 54 +++
test/validation/synchronizers/synchronizers.h | 1 +
2 files changed, 55 insertions(+)
diff --git a/test/validation/synchronizers
Added validation test for all operations with non-relaxed
memory model. Mainly testing that functions are available.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 82 +++
test/validation/synchronizers/synchronizers.h | 1 +
2 files
Added validation test for CAS operations. Maintained the structure
of other atomic tests: one function increments and another decrements
a variable.
Signed-off-by: Petri Savolainen
---
test/validation/synchronizers/synchronizers.c | 83 +++
test/validation/synchronizers
Added 32 and 64 bit atomic exchange operations in relaxed
memory ordering. These can be used e.g. to initialize a counter
while counting.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 27 +++
1 file changed, 27 insertions(+)
diff --git a/include/odp/api
Added 64 bit versions of the same set of non-relaxed atomic
operations that are already defined for 32 bit.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 99
1 file changed, 99 insertions(+)
diff --git a/include/odp/api/atomic.h
Implemented 32 and 64 bit atomic exchange operations.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 16
1 file changed, 16 insertions(+)
diff --git a/platform/linux-generic/include/odp/atomic.h
b/platform/linux-generic/include/odp/atomic.h
Added RELEASE and ACQUIRE-and-RELEASE versions of 32 bit CAS.
These are commonly needed operations in lock-free algorithms.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h | 86 +---
1 file changed, 67 insertions(+), 19 deletions(-)
diff
Implemented 64 bit non-relaxed atomic operations. Additional
ordering is not needed in case of using ATOMIC_OP since it
includes both acquire and release ordering.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 83 +
1 file changed
Implemented 32bit cas_rel and cas_acq_rel calls.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/include/odp/atomic.h | 37 ++---
1 file changed, 28 insertions(+), 9 deletions(-)
diff --git a/platform/linux-generic/include/odp/atomic.h
b/platform/linux
Rename release ordering from _rls_ to _rel_ since it matches
better with _acq_rel_, which is going to be used for C11
memory_order_acq_rel order.
Signed-off-by: Petri Savolainen
---
include/odp/api/atomic.h| 8
platform/linux-generic/include/odp/atomic.h | 6
the API).
Additional operations can be added later if needed. Only commonly needed
combinations of non-relaxed operations will be supported (added based on use
case as any other ODP API). This set should already enable major part of
lock-free algorithms.
Petri Savolainen (13):
api: atomic
All ODP API enums are typedef'd and type name has
a '_t' post-fix.
Signed-off-by: Petri Savolainen
---
include/odp/api/init.h| 8
platform/linux-generic/odp_weak.c | 2 +-
test/validation/init/init.c | 4 ++--
3 files changed, 7 insertions(+), 7 del
Pause is used in tight loops to reduce stress to the system.
Signed-off-by: Petri Savolainen
---
include/odp/api/cpu.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/include/odp/api/cpu.h b/include/odp/api/cpu.h
index 8a804d4..4cbaf58 100644
--- a/include/odp/api/cpu.h
+++ b
Implemented pause as an inline function in a cpu arch dependent
header file.
Signed-off-by: Petri Savolainen
---
helper/Makefile.am| 2 ++
platform/linux-generic/Makefile.am| 4 +++-
platform/linux-generic/Makefile.inc | 1
These arch depedent files are not limited to cpu_cycle
calls implementation only.
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 8 ++--
platform/linux-generic/arch/linux/odp_cpu_arch.c | 48 ++
platform/linux-generic/arch/linux
Removed odp_spin() and replaced usage with odp_cpu_pause().
Signed-off-by: Petri Savolainen
---
platform/linux-generic/Makefile.am | 1 -
platform/linux-generic/include/odp_spin_internal.h | 58 --
platform/linux-generic/odp_barrier.c | 4
Deleted odph_pause() and replaced usage with odp_cpu_pause()
calls.
Signed-off-by: Petri Savolainen
---
helper/Makefile.am | 1 -
helper/odph_pause.h | 54
helper/ring.c| 10 +++--
helper/test/Makefile.am | 2
Documented string format for odp_thrmask_from_str()
and _to_str(). Format is permissive in input, but
fixed on output.
Signed-off-by: Petri Savolainen
---
include/odp/api/thrmask.h | 30 --
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/include/odp
Documented string format for odp_cpumask_from_str()
and _to_str(). Format is permissive in input, but
fixed on output.
Signed-off-by: Petri Savolainen
---
include/odp/api/cpumask.h | 28 +++-
1 file changed, 19 insertions(+), 9 deletions(-)
diff --git a/include/odp/api
Application cannot dequeue from sink queues, it can only enqueue.
This queue type can be used for packet output, but also for other
ODP features that will consume all enqueued events.
Signed-off-by: Petri Savolainen
---
include/odp/api/queue.h | 9
V/_SEND) are renamed to _DIRECT, which
is future proof to support additional direct calls (in addition to
_recv() and _send()) for packet input/output.
Signed-off-by: Petri Savolainen
---
example/classifier/odp_classifier.c| 2 +-
example/generator/odp_generator.c
using
the scheduler).
Signed-off-by: Petri Savolainen
---
example/generator/odp_generator.c | 6 +++---
example/ipsec/odp_ipsec.c | 6 +++---
include/odp/api/queue.h| 2 +-
platform/linux-generic/
it's
the one sending packets out).
Signed-off-by: Petri Savolainen
---
include/odp/api/packet_io.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h
index 55d5d81..169edba 100644
--- a/include/odp/api/packet_io.h
+++ b/include/od
601 - 700 of 1113 matches
Mail list logo