summaryrefslogtreecommitdiff
path: root/app/test-eventdev/test_order_queue.c
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>2018-07-13 14:21:14 +0530
committerJerin Jacob <jerin.jacob@caviumnetworks.com>2018-07-25 14:28:25 +0200
commit9d0c15b6c5956cce6038448b8115e8e911cfaefb (patch)
tree4aa5bd52e80534d4cddf096429605f06c3e5ecbe /app/test-eventdev/test_order_queue.c
parent9077d5a44ee859f63a1fe535036855df4dd8a33f (diff)
downloaddpdk-next-eventdev-9d0c15b6c5956cce6038448b8115e8e911cfaefb.zip
dpdk-next-eventdev-9d0c15b6c5956cce6038448b8115e8e911cfaefb.tar.gz
dpdk-next-eventdev-9d0c15b6c5956cce6038448b8115e8e911cfaefb.tar.xz
app/eventdev: fix order test service init
Previous modification to evt_service_setup() broke order_queue/atq tests. Fixes: b0333c55dfa5 ("app/eventdev: add service core configuration") Cc: stable@dpdk.org Reported-by: Gage Eads <gage.eads@intel.com> Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com> Acked-by: Gage Eads <gage.eads@intel.com> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Diffstat (limited to 'app/test-eventdev/test_order_queue.c')
-rw-r--r--app/test-eventdev/test_order_queue.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/test-eventdev/test_order_queue.c b/app/test-eventdev/test_order_queue.c
index f603a02..17f7b98 100644
--- a/app/test-eventdev/test_order_queue.c
+++ b/app/test-eventdev/test_order_queue.c
@@ -164,10 +164,14 @@ order_queue_eventdev_setup(struct evt_test *test, struct evt_options *opt)
if (ret)
return ret;
- ret = evt_service_setup(opt->dev_id);
- if (ret) {
- evt_err("No service lcore found to run event dev.");
- return ret;
+ if (!evt_has_distributed_sched(opt->dev_id)) {
+ uint32_t service_id;
+ rte_event_dev_service_id_get(opt->dev_id, &service_id);
+ ret = evt_service_setup(service_id);
+ if (ret) {
+ evt_err("No service lcore found to run event dev.");
+ return ret;
+ }
}
ret = rte_event_dev_start(opt->dev_id);