service: fix lcore iteration
authorIgor Romanov <igor.romanov@oktetlabs.ru>
Tue, 7 Jul 2020 10:45:24 +0000 (11:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Jul 2020 21:48:44 +0000 (23:48 +0200)
commitf3c256b621262e581d3edcca383df83875ab7ebe
treec9bc615737d0f5c39efa749243bb115f211402cd
parentb2a0b9f0447a64dd03aa210c49d70572077555ea
service: fix lcore iteration

The service core list is populated, but not used. Incorrect
lcore states are examined for a service.

Use the populated list to iterate over service cores.

Fixes: e484ccddbe1b ("service: avoid false sharing on core state")
Cc: stable@dpdk.org
Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
lib/librte_eal/common/rte_service.c