summaryrefslogtreecommitdiff
path: root/app/test-eventdev/test_pipeline_atq.c
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@marvell.com>2019-03-29 07:11:46 +0000
committerJerin Jacob <jerinj@marvell.com>2019-04-02 06:41:08 +0530
commit13140e4af8ebc1d3ff5cb8cf16f5b998dd0dfbab (patch)
treef8fce490a924d2a411599b9f4a149896075dba37 /app/test-eventdev/test_pipeline_atq.c
parentea7ce1fea821d4068a746658d55d89865d92b67c (diff)
downloaddpdk-next-eventdev-13140e4af8ebc1d3ff5cb8cf16f5b998dd0dfbab.zip
dpdk-next-eventdev-13140e4af8ebc1d3ff5cb8cf16f5b998dd0dfbab.tar.gz
dpdk-next-eventdev-13140e4af8ebc1d3ff5cb8cf16f5b998dd0dfbab.tar.xz
app/eventdev: add option to set global dequeue tmo
Add option to provide a global dequeue timeout that is used to create the eventdev. The dequeue timeout provided will be common across all the worker ports. If the eventdev hardware supports power management through dequeue timeout then this option can be used for verifying power demands at various packet rates. Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Diffstat (limited to 'app/test-eventdev/test_pipeline_atq.c')
-rw-r--r--app/test-eventdev/test_pipeline_atq.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/test-eventdev/test_pipeline_atq.c b/app/test-eventdev/test_pipeline_atq.c
index 998a56c..8e8686c 100644
--- a/app/test-eventdev/test_pipeline_atq.c
+++ b/app/test-eventdev/test_pipeline_atq.c
@@ -314,17 +314,7 @@ pipeline_atq_eventdev_setup(struct evt_test *test, struct evt_options *opt)
rte_event_dev_info_get(opt->dev_id, &info);
- const struct rte_event_dev_config config = {
- .nb_event_queues = nb_queues,
- .nb_event_ports = nb_ports,
- .nb_events_limit = info.max_num_events,
- .nb_event_queue_flows = opt->nb_flows,
- .nb_event_port_dequeue_depth =
- info.max_event_port_dequeue_depth,
- .nb_event_port_enqueue_depth =
- info.max_event_port_enqueue_depth,
- };
- ret = rte_event_dev_configure(opt->dev_id, &config);
+ ret = evt_configure_eventdev(opt, nb_queues, nb_ports);
if (ret) {
evt_err("failed to configure eventdev %d", opt->dev_id);
return ret;