summaryrefslogtreecommitdiff
path: root/app/test-eventdev/test_order_queue.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 03:11:08 +0200
commitf0959283edb22dbabaf51c1e20fea466284d634e (patch)
tree2954e8545440830f8731dd22f0d56ce2ec24dbc2 /app/test-eventdev/test_order_queue.c
parent1b03e2929114d4ebfc7a2159d0d45f0a3e9a7ba6 (diff)
downloaddpdk-next-eventdev-f0959283edb22dbabaf51c1e20fea466284d634e.zip
dpdk-next-eventdev-f0959283edb22dbabaf51c1e20fea466284d634e.tar.gz
dpdk-next-eventdev-f0959283edb22dbabaf51c1e20fea466284d634e.tar.xz
app/eventdev: add option for global dequeue timeout
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_order_queue.c')
-rw-r--r--app/test-eventdev/test_order_queue.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/app/test-eventdev/test_order_queue.c b/app/test-eventdev/test_order_queue.c
index a272c7a..7ac570c 100644
--- a/app/test-eventdev/test_order_queue.c
+++ b/app/test-eventdev/test_order_queue.c
@@ -118,16 +118,7 @@ order_queue_eventdev_setup(struct evt_test *test, struct evt_options *opt)
/* number of active worker cores + 1 producer */
const uint8_t nb_ports = nb_workers + 1;
- const struct rte_event_dev_config config = {
- .nb_event_queues = NB_QUEUES,/* q0 ordered, q1 atomic */
- .nb_event_ports = nb_ports,
- .nb_events_limit = 4096,
- .nb_event_queue_flows = opt->nb_flows,
- .nb_event_port_dequeue_depth = 128,
- .nb_event_port_enqueue_depth = 128,
- };
-
- 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;