service: fix lcore role after delete
authorHarry van Haaren <harry.van.haaren@intel.com>
Tue, 9 Jan 2018 13:37:40 +0000 (13:37 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Jan 2018 22:28:56 +0000 (23:28 +0100)
commit54e7456a3bfdf2d7fe651ec25e951fe4b44be569
treeccf895df8800bb87b39460bebc27593ee0b13747
parent088a05f057d68ad48fe6788bb276d5d4bd151fb1
service: fix lcore role after delete

This patch fixes the reset of the service core,
that when rte_service_lcore_del() is called, the
lcore_role is restored to RTE.

This issue was reported as when running the unit tests, an
error was thrown that "failed to allocate lcore". Investigating
revealed that the state of the service-cores after del() was
not allowing a core to be re-used at a later point in time.

Fixes: 21698354c832 ("service: introduce service cores concept")
Cc: stable@dpdk.org
Reported-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
lib/librte_eal/common/rte_service.c