service: add attribute API
authorErik Gabriel Carrillo <erik.g.carrillo@intel.com>
Wed, 9 May 2018 16:22:16 +0000 (11:22 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Jul 2018 21:43:23 +0000 (23:43 +0200)
commitf28f3594ded2a55cf8ab15995ffc4f0b9e9eda55
tree6cf2cdde21ffafd6fba17b7d99b4a682596eb137
parent56c7ddc1381a56612018b75a848169b917bc33fb
service: add attribute API

Add APIs that allow an application to query and reset the attributes of
a service lcore.  Add one such new attribute, "loops", which is a
counter that tracks the number of times the service core has looped in
the service runner function.  This is useful to applications that desire
a "liveness" check to make sure a service core is not stuck.

Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_eal/common/include/rte_service.h
lib/librte_eal/common/rte_service.c
lib/librte_eal/rte_eal_version.map
test/test/test_service_cores.c