diff options
author | Vijay Ram Inavolu <vinavolu@marvell.com> | 2021-04-20 08:01:42 +0000 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-05-11 10:49:30 +0300 |
commit | 6aedaadeae6dadc478493cc6635585f803f4b631 (patch) | |
tree | e556fb665e031f5942f411dbae45040567d6b1f9 /test/performance/odp_ipsec.c | |
parent | 33d5dc1e54e39ac7417ce34962f3ec4cb234cff3 (diff) |
test: performance: ipsec: Fix for ipsec schedule mode to work
Do not invoke odp_queue_deq() for a scheduled queue when waiting for SA
disable status event. This fix changes that so that -s option can be
now used for this test app
Signed-off-by: Vijay Ram Inavolu <vinavolu@marvell.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'test/performance/odp_ipsec.c')
-rw-r--r-- | test/performance/odp_ipsec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/performance/odp_ipsec.c b/test/performance/odp_ipsec.c index 2e283a63b..05a22ff0d 100644 --- a/test/performance/odp_ipsec.c +++ b/test/performance/odp_ipsec.c @@ -866,7 +866,12 @@ run_measure_one_config(ipsec_args_t *cargs, odp_ipsec_status_t status; while (1) { - odp_event_t event = odp_queue_deq(out_queue); + odp_event_t event; + + if (cargs->poll) + event = odp_queue_deq(out_queue); + else + event = odp_schedule(NULL, ODP_SCHED_NO_WAIT); if (event != ODP_EVENT_INVALID && odp_event_type(event) == ODP_EVENT_IPSEC_STATUS && |