From: Pavan Nikhilesh Date: Fri, 13 Jul 2018 08:51:14 +0000 (+0530) Subject: app/eventdev: fix order test service init X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9d0c15b6c5956cce6038448b8115e8e911cfaefb;p=dpdk.git 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 Signed-off-by: Pavan Nikhilesh Acked-by: Gage Eads Acked-by: Jerin Jacob --- diff --git a/app/test-eventdev/test_order_atq.c b/app/test-eventdev/test_order_atq.c index c57fbbfa64..35debcfdcc 100644 --- a/app/test-eventdev/test_order_atq.c +++ b/app/test-eventdev/test_order_atq.c @@ -151,10 +151,14 @@ order_atq_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); diff --git a/app/test-eventdev/test_order_queue.c b/app/test-eventdev/test_order_queue.c index f603a02305..17f7b9845f 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);