summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@marvell.com>2019-03-11 06:49:28 +0000
committerJerin Jacob <jerinj@marvell.com>2019-03-15 06:46:50 +0100
commitc13b1ad719a4d2baccc96084ad7ec33a19c3460c (patch)
tree3c3713cdc66a800d05dac866134c6de1ff19085a /app
parent8f7bc65cefb2fa8e79cf32bcc15945de801f9b48 (diff)
downloaddpdk-next-eventdev-c13b1ad719a4d2baccc96084ad7ec33a19c3460c.zip
dpdk-next-eventdev-c13b1ad719a4d2baccc96084ad7ec33a19c3460c.tar.gz
dpdk-next-eventdev-c13b1ad719a4d2baccc96084ad7ec33a19c3460c.tar.xz
app/eventdev: configure optimum timers per adapter
Previously, the total number of event timers per adapter was set to an arbitrary value, set it to mempool size instead as it defines the max event timers that can be armed. Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com> Acked-by: Jerin Jacob <jerinj@marvell.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-eventdev/test_perf_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c
index f99a6a6..d14034e 100644
--- a/app/test-eventdev/test_perf_common.c
+++ b/app/test-eventdev/test_perf_common.c
@@ -432,7 +432,7 @@ perf_event_timer_adapter_setup(struct test_perf *t)
.timer_adapter_id = i,
.timer_tick_ns = t->opt->timer_tick_nsec,
.max_tmo_ns = t->opt->max_tmo_nsec,
- .nb_timers = 2 * 1024 * 1024,
+ .nb_timers = t->opt->pool_sz,
.flags = flags,
};