This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via a8fca1ed79b6e5173c14fdfff43ff5460f61ef68 (commit) from 6d23501cc7d67d9903efcc2c288276b79eef5044 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit a8fca1ed79b6e5173c14fdfff43ff5460f61ef68 Author: Petri Savolainen petri.savolainen@nokia.com Date: Wed Jul 3 11:22:42 2019 +0300
test: fix pool capability check
Max_num capability value of zero means that only memory size limits the pool size.
Signed-off-by: Petri Savolainen petri.savolainen@nokia.com Reviewed-by: Stanislaw Kardach skardach@marvell.com
diff --git a/test/performance/odp_pool_perf.c b/test/performance/odp_pool_perf.c index d771e53e5..89cb109b2 100644 --- a/test/performance/odp_pool_perf.c +++ b/test/performance/odp_pool_perf.c @@ -148,6 +148,7 @@ static int create_pool(test_global_t *global) odp_pool_capability_t pool_capa; odp_pool_param_t pool_param; odp_pool_t pool; + uint32_t max_num; test_options_t *test_options = &global->test_options; uint32_t num_event = test_options->num_event; uint32_t num_round = test_options->num_round; @@ -165,8 +166,10 @@ static int create_pool(test_global_t *global) return -1; }
- if (num_event > pool_capa.buf.max_num) { - printf("Max events supported %u\n", pool_capa.buf.max_num); + max_num = pool_capa.buf.max_num; + + if (max_num && num_event > max_num) { + printf("Error: max events supported %u\n", max_num); return -1; }
diff --git a/test/performance/odp_queue_perf.c b/test/performance/odp_queue_perf.c index 80d0f1548..2c132ba6a 100644 --- a/test/performance/odp_queue_perf.c +++ b/test/performance/odp_queue_perf.c @@ -154,7 +154,7 @@ static int create_queues(test_global_t *global) odp_pool_param_t pool_param; odp_queue_param_t queue_param; odp_pool_t pool; - uint32_t i, j, max_size; + uint32_t i, j, max_size, max_num; test_options_t *test_options = &global->options; odp_nonblocking_t nonblock = test_options->nonblock; uint32_t num_queue = test_options->num_queue; @@ -243,8 +243,10 @@ static int create_queues(test_global_t *global) return -1; }
- if (tot_event > pool_capa.buf.max_num) { - printf("Max events supported %u\n", pool_capa.buf.max_num); + max_num = pool_capa.buf.max_num; + + if (max_num && tot_event > max_num) { + printf("Error: max events supported %u\n", max_num); return -1; }
diff --git a/test/performance/odp_sched_perf.c b/test/performance/odp_sched_perf.c index c301263ef..65cf63bb9 100644 --- a/test/performance/odp_sched_perf.c +++ b/test/performance/odp_sched_perf.c @@ -200,6 +200,7 @@ static int create_pool(test_global_t *global) odp_pool_capability_t pool_capa; odp_pool_param_t pool_param; odp_pool_t pool; + uint32_t max_num; test_options_t *test_options = &global->test_options; uint32_t num_cpu = test_options->num_cpu; uint32_t num_queue = test_options->num_queue; @@ -229,8 +230,10 @@ static int create_pool(test_global_t *global) return -1; }
- if (tot_event > pool_capa.buf.max_num) { - printf("Max events supported %u\n", pool_capa.buf.max_num); + max_num = pool_capa.buf.max_num; + + if (max_num && tot_event > max_num) { + printf("Error: max events supported %u\n", max_num); return -1; }
-----------------------------------------------------------------------
Summary of changes: test/performance/odp_pool_perf.c | 7 +++++-- test/performance/odp_queue_perf.c | 8 +++++--- test/performance/odp_sched_perf.c | 7 +++++-- 3 files changed, 15 insertions(+), 7 deletions(-)
hooks/post-receive