Age | Commit message (Collapse) | Author |
|
Include short description in Doxygen output for each example application.
The documentations are moved to application source files for ease of
maintenance.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Add missing timer free return value checks into various timer
test applications.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Quell false positive GCC 13.1 -Warray-bounds and -Wstringop-overflow
warnings.
The warnings still appear during LTO linking, because GCC does not
carry diagnostic pragmas to the linking stage.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
|
|
Remove `available_pmr_terms` as obsolete and unused.
Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Kiran Kumar Kokkilagadda <kirankumark@marvell.com>
|
|
Rename `max_pmr_terms` to `max_terms_per_pmr` to better match its
intended purpose.
Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Kiran Kumar Kokkilagadda <kirankumark@marvell.com>
|
|
Fill new `max_pmr` and `max_pmr_per_cos` packet matching rule
capabilities.
Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Remove the function to check if a timeout is from a timer
that was tried to be restarted or cancelled (the try failed),
or from a timer that was freed. The feature is not very useful
to applications, since freshness result depends on timing of
those API calls vs the freshness check point. Also, an
application should be able to maintain the same status
information itself if needed.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
|
|
Update example applications to utilize new odp_timer_pool_start_multi()
API.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Remove possibility to free a timer that is running. When timer
free call returns, the timer handle cannot be referenced any
more. Expiration and event delivery of an already destroyed
timer is an error prone corner case.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
|
|
In pktio case, call extra statistics print in addition to pktio
print.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
According to help, test runs on single CPU by default.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
|
|
Use ODP_UNUSED for intentionally unused variables of functions.
Thereby, harmonizing the main function signatures across multiple
files.
Signed-off-by: Kameswar Rao Vaddina <kameswar.vaddina@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Utilize new ODPH_ABS() macro in timer accuracy example application.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Utilize new ODPH_MIN() and ODPH_MAX() macros in example applications.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Remove unused ICMP defines and add missing ODPH_ prefix to the remaining
ones.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Add support for ARM ISA versions ARMv8.8-A, ARMv8.9-A, and ARMv9.3-A.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Replace MAX_PKTIO_INDEXES with ODP_PKTIO_MAX_INDEX API define, which value
is quaranteed to be >= odp_pktio_max_index() and odp_pktio_index().
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Schedule wait time is not in nanoseconds. Convert by calling
odp_schedule_wait_time().
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Add an option (-G, --sched_groups) to use a dedicated schedule group
for each queue.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Add an option (-q, --num_queue) to set the number of queues.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Add an option (-t, --queue_type) to set the queue sync type.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Add an option (-c, --count) to set the cpu count.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
To prepare for supporting multiple workers, use shm for test_global_t,
timer context table and test log.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
The test doesn't complete with one-shot timers and nonzero warmup
periods (-w option), because we don't create timers for warmup in mode
0, and we stop re-starting timers too soon in modes 1 and 2. Fix it.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
timer specific
Make first timeout diff and final timeout error timer specific by
storing them in the timer context.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Call odp_timer_pool_start() before querying timer pool info. Depending on
the implementation, some information may only be available after the
timer pool has been started.
Also, print clock source in case of timer API call failures.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Print timer pool tick info from odp_timer_pool_info().
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Print missing capabilities and units in sysinfo example.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Use EXIT_SUCCESS/EXIT_FAILURE always when exiting the application.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Use ODPH_ERR() helper macro for all error prints.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Print timer capabilities, including periodic, for all supported clock
sources in sysinfo example.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Print odp_proto_stats_capability() output in sysinfo example.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Print odp_pktio_capability() output in sysinfo example. Also, help print
has been added for the application.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Print odp_pool_ext_capability() output in sysinfo example.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Fix spelling errors found by crate-ci/typos.
Signed-off-by: Tianyu Li <tianyu.li@arm.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Update test applications to use odp_timer_retval_t instead of
odp_timer_set_t, which will be deprecated later.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
|
|
first_tick is zero
When periodic first_tick is zero, the API allows the implementation to
place the timer where it can. Account for that by taking the first
timeout tick as a baseline, or if that's not available, then just use
the current time when the timer first expires.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Shijith Thotton <sthotton@marvell.com>
|
|
Setting odp_errno has been removed from odp_pktio_open() API.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Check crypto operation success from the return value of odp_crypto_result()
instead of the ok field of the result structure.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Anoob Joseph <anoobj@marvell.com>
|
|
Check only odp_crypto_packet_result_t::ok to see if a crypto operation
succeeded. There is no need to check the status fields to second-guess
the validity of the ok field.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Anoob Joseph <anoobj@marvell.com>
|
|
Compare measured timer period to the requested timer frequency in
parameters, instead of timer frequency passed in the command line
options. Depending on timer capability, the frequency from options
may be changed to the frequency returned by periodic timer capability
call.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
With periodic timer, requested timer frequency (and max multiplier)
may affect maximum timer resolution. Added option (-r -1) to use
resolution returned by periodic timer capability call. Also, leave
min/max timeout parameters to defaults, as periodic timer pool
create ignores those. Separeted single shot and period timer pool
parameter setup, so that it is easier to follow how parameter values
are formed.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Add option -w, which specifies the number of warmup periods.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Print the timing error for the final timeout.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Print the indices of events that produced the minimum and maximum
timing errors.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Add a new mode (-m 3), which uses the periodic timer API. Add -P and
-M options, which allow specifying periodic timer pool parameters and
periodic timer multiplier.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Simplify the example by switching to ODP_CRYPTO_OP_TYPE_BASIC from
ODP_CRYPTO_OP_TYPE_LEGACY. Remove the selection between in-place
and new-buffer API modes as the basic operation type always
consumes the input packets and produces a new output packet.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Stop using deprecated odp_timer_set_rel() function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
|
|
Stop using deprecated odp_timer_set_abs() function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
|
|
Stop using deprecated odp_timer_set_abs() function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
|