service: fix number mapped cores count
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Tue, 9 Jan 2018 09:40:41 +0000 (15:10 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Jan 2018 22:23:10 +0000 (23:23 +0100)
commit088a05f057d68ad48fe6788bb276d5d4bd151fb1
treedb0c52ba7971464acadb78fc63ec206bf7651680
parent9e0b9d2ec0f4bb7256f9b053c43d7c1d0c02c3e2
service: fix number mapped cores count

When adding service the number of mapped cores should only be incremented
when the core is not already a service core or vice versa.

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