With the scalable scheduler, queue is implemented by the ring buffer. The default ring size is ODP_CONFIG_QUEUE_SIZE which may be less than the requirement of the scheduler test case. So need to change the ring size according to the test requirement.
Signed-off-by: Kevin Wang <[email protected]> --- test/common_plat/validation/api/scheduler/scheduler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common_plat/validation/api/scheduler/scheduler.c b/test/common_plat/validation/api/scheduler/scheduler.c index 952561c..651c9dc 100644 --- a/test/common_plat/validation/api/scheduler/scheduler.c +++ b/test/common_plat/validation/api/scheduler/scheduler.c @@ -1388,12 +1388,14 @@ static int create_queues(void) snprintf(name, sizeof(name), "sched_%d_%d_a", i, j); p.sched.sync = ODP_SCHED_SYNC_ATOMIC; + p.size = BUFS_PER_QUEUE_EXCL; q = odp_queue_create(name, &p); if (q == ODP_QUEUE_INVALID) { printf("Schedule queue create failed.\n"); return -1; } + p.size = 0; snprintf(name, sizeof(name), "plain_%d_%d_o", i, j); pq = odp_queue_create(name, NULL); -- 2.7.4
