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 fa281989523b82177f974abe7b4adfec47705dfa (commit) from 3bacbfd55edf76b897a4b2e5c62b59ca6fa95331 (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 fa281989523b82177f974abe7b4adfec47705dfa Author: Matias Elo matias.elo@nokia.com Date: Fri Oct 6 14:39:26 2017 +0300
test: pktio_perf: increase maximum number of workers threads
Increase maximum number of workers to 128. Also, fixes a buffer overflow which happened when system's maximum thread count was larger than the value of MAX_WORKERS.
Signed-off-by: Matias Elo matias.elo@nokia.com Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/performance/odp_pktio_perf.c b/test/common_plat/performance/odp_pktio_perf.c index a170e128..80ff6684 100644 --- a/test/common_plat/performance/odp_pktio_perf.c +++ b/test/common_plat/performance/odp_pktio_perf.c @@ -39,7 +39,7 @@ #define PKT_BUF_NUM (32 * 1024) #define MAX_NUM_IFACES 2 #define TEST_HDR_MAGIC 0x92749451 -#define MAX_WORKERS 32 +#define MAX_WORKERS 128 #define BATCH_LEN_MAX 32
/* Packet rate at which to start when using binary search */ @@ -563,6 +563,12 @@ static int setup_txrx_masks(odp_cpumask_t *thd_mask_tx, return TEST_SKIP; }
+ if (num_workers > MAX_WORKERS) { + LOG_DBG("Worker count limited to MAX_WORKERS define (=%d)\n", + MAX_WORKERS); + num_workers = MAX_WORKERS; + } + if (gbl_args->args.num_tx_workers) { if (gbl_args->args.num_tx_workers > (num_workers - 1)) { LOG_ERR("Invalid TX worker count\n");
-----------------------------------------------------------------------
Summary of changes: test/common_plat/performance/odp_pktio_perf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
hooks/post-receive