service: add function to run on app lcore
authorHarry van Haaren <harry.van.haaren@intel.com>
Wed, 25 Oct 2017 13:25:28 +0000 (14:25 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 Oct 2017 15:04:52 +0000 (17:04 +0200)
commite9139a32f6e8dcc3e6fe4050ff45a9570fdba58b
tree300a4cd621246bd8fadf3c85f8a9abf27f33ab66
parent45a914c5bd71d682e1575deb337264804dbe94ec
service: add function to run on app lcore

This commit adds a new function which allows an application lcore
(aka; *not* a dedicated service-lcore) to run a service. This
function is required to allow applications to gradually port
functionality to using services, while still being able to run
ordinary application functions.

This requirement became clear when a patch to the existing
eventdev/pipeline sample app was modified to use a service-core
for scheduling - and that same core should be capable of running
the "worker()" function from the application too.

This patch refactors the existing running code into a smaller
"service_run" function, which can be called by the dedicated
service-core loop, and the newly added function.

[1] http://dpdk.org/ml/archives/dev/2017-October/079876.html

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
lib/librte_eal/common/include/rte_service.h
lib/librte_eal/common/rte_service.c
lib/librte_eal/rte_eal_version.map