diff options
author | Ashwin Sekhar T K <asekhar@marvell.com> | 2022-01-03 18:56:39 +0530 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2022-01-05 16:36:41 +0200 |
commit | d3133175e6edf9a0dd3b1eb3b66a3336f67d5183 (patch) | |
tree | f8bcf42baf1d3ffdfd7229c8257c1a80d1aed652 /test/validation/api/queue | |
parent | 59e539325f969ec06ed2e022426a7b11bae14999 (diff) |
validation: queue: create pools with enough buffers
While creating pools, take into consideration buffer starvation
that can occur on a core due to buffers being cached on a different
core. So ensure that pools are created with enough buffers.
Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'test/validation/api/queue')
-rw-r--r-- | test/validation/api/queue/queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/validation/api/queue/queue.c b/test/validation/api/queue/queue.c index 7b39da433..ec6863628 100644 --- a/test/validation/api/queue/queue.c +++ b/test/validation/api/queue/queue.c @@ -84,7 +84,9 @@ static int queue_suite_init(void) odp_pool_param_init(¶ms); params.buf.size = 4; - params.buf.num = MAX_NUM_EVENT; + /* Allocate enough buffers taking into consideration core starvation + * due to caching */ + params.buf.num = MAX_NUM_EVENT + params.buf.cache_size; params.type = ODP_POOL_BUFFER; pool = odp_pool_create("msg_pool", ¶ms); |