aboutsummaryrefslogtreecommitdiff
path: root/test/performance/odp_sched_pktio.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>2018-10-31 13:47:52 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-12-26 16:48:54 +0300
commitf27ee888c0ed07a08eafaea596094125cb9fdcc6 (patch)
tree5092a21719120f9906861b740d03a9a74a176e93 /test/performance/odp_sched_pktio.c
parent2aee8a5840602472d46ae873c9d9f87cf54461e7 (diff)
example, tests: move scheduled queue capabilities to sched
Move scheduled queue capabilities to odp_schedule_capability_t structure, as they logically belong to ODP scheduler module, rather than queue module. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test/performance/odp_sched_pktio.c')
-rw-r--r--test/performance/odp_sched_pktio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/performance/odp_sched_pktio.c b/test/performance/odp_sched_pktio.c
index 878dcad0e..1faa9b1d5 100644
--- a/test/performance/odp_sched_pktio.c
+++ b/test/performance/odp_sched_pktio.c
@@ -1109,12 +1109,12 @@ static int create_pipeline_queues(test_global_t *test_global)
int i, j, k, num_pktio, stages, queues, ctx_size;
pipe_queue_context_t *ctx;
odp_queue_param_t queue_param;
- odp_queue_capability_t queue_capa;
+ odp_schedule_capability_t schedule_capa;
odp_schedule_sync_t sched_sync;
int ret = 0;
- if (odp_queue_capability(&queue_capa)) {
- printf("Error: Queue capability failed\n");
+ if (odp_schedule_capability(&schedule_capa)) {
+ printf("Error: Schedule capa failed.\n");
return -1;
}
@@ -1130,10 +1130,10 @@ static int create_pipeline_queues(test_global_t *test_global)
queue_param.sched.group = ODP_SCHED_GROUP_ALL;
queue_param.size = test_global->opt.pipe_queue_size;
- if (queue_capa.sched.max_size &&
- queue_param.size > queue_capa.sched.max_size) {
+ if (schedule_capa.max_queue_size &&
+ queue_param.size > schedule_capa.max_queue_size) {
printf("Error: Pipeline queue max size is %u\n",
- queue_capa.sched.max_size);
+ schedule_capa.max_queue_size);
return -1;
}