summaryrefslogtreecommitdiff
path: root/app/test-eventdev/test_order_queue.c
diff options
context:
space:
mode:
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>2017-10-25 20:20:29 +0530
committerThomas Monjalon <thomas@monjalon.net>2017-10-27 00:53:07 +0200
commit57305d794e03b0ce7f103a99c27148564b31fd05 (patch)
tree23ec59af93b731b57ddf4a497072bcc6d787c153 /app/test-eventdev/test_order_queue.c
parent4c2fd9791db24f31b76aa187e212a6c8dd325fb0 (diff)
downloaddpdk-next-eventdev-57305d794e03b0ce7f103a99c27148564b31fd05.zip
dpdk-next-eventdev-57305d794e03b0ce7f103a99c27148564b31fd05.tar.gz
dpdk-next-eventdev-57305d794e03b0ce7f103a99c27148564b31fd05.tar.xz
app/testeventdev: use service cores
Use service cores for offloading event scheduling in case of centralized scheduling instead of calling the schedule api directly. This removes the dependency on dedicated scheduler core specified by giving command line option --slcore. Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/test-eventdev/test_order_queue.c b/app/test-eventdev/test_order_queue.c
index 1fa4082..eef69a4 100644
--- a/app/test-eventdev/test_order_queue.c
+++ b/app/test-eventdev/test_order_queue.c
@@ -192,6 +192,12 @@ 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;
+ }
+
ret = rte_event_dev_start(opt->dev_id);
if (ret) {
evt_err("failed to start eventdev %d", opt->dev_id);