service: initialize with EAL
authorHarry van Haaren <harry.van.haaren@intel.com>
Tue, 11 Jul 2017 14:19:28 +0000 (15:19 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 16 Jul 2017 18:32:45 +0000 (20:32 +0200)
commite398245008252b3c92ae0ac54b689e3ac63d3db9
treeb091089dedefc22187e85442be37af7bc034b8ee
parent21698354c8329f854ac54b4803272832d9049d54
service: initialize with EAL

This commit shows the changes required in rte_eal_init()
to transparently launch the service threads. The threads
are launched into the service worker functions here because
after rte_eal_init() the application is not gauranteed to
call any other DPDK API.

As the registration of services happens at initialization
time, the services that require CPU time are already available
when we reach the end of rte_eal_init().

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal.c