From: Harry van Haaren Date: Mon, 21 Aug 2017 12:58:12 +0000 (+0100) Subject: service: fix lcore in wait state in lcore add X-Git-Tag: spdx-start~2159 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5ef9209891aa415463c2571a1655b7062635e2d5;p=dpdk.git service: fix lcore in wait state in lcore add This commit ensures that after an lcore is added, that it is in the WAIT state. Previously, adding an lcore did not ensure that the core was ready for being relaunch, which would cause errors during lcore_start(). Now that the lcore is ensured to be in WAIT state by the lcore_add() function, this is no longer an issue. Fixes: 21698354c832 ("service: introduce service cores concept") Signed-off-by: Harry van Haaren Acked-by: Pavan Nikhilesh --- diff --git a/lib/librte_eal/common/rte_service.c b/lib/librte_eal/common/rte_service.c index 6967ea321d..f022b28f83 100644 --- a/lib/librte_eal/common/rte_service.c +++ b/lib/librte_eal/common/rte_service.c @@ -550,7 +550,8 @@ rte_service_lcore_add(uint32_t lcore) lcore_states[lcore].runstate = RUNSTATE_STOPPED; rte_smp_wmb(); - return 0; + + return rte_eal_wait_lcore(lcore); } int32_t