Re: [PATCH] service: fix early move to inactive status

2022-10-21 Thread David Marchand
On Fri, Oct 21, 2022 at 1:36 PM Van Haaren, Harry wrote: > > > > Assume thread T2 is a service lcore that is in the middle of executing > > a service function. Also, assume thread T1 concurrently calls > > rte_service_lcore_stop(), which will set the "service_active_on_lcore" > > state to false.

RE: [PATCH] service: fix early move to inactive status

2022-10-21 Thread Van Haaren, Harry
> -Original Message- > From: Carrillo, Erik G > Sent: Thursday, October 20, 2022 8:01 PM > To: Van Haaren, Harry > Cc: Naga Harish K, S V ; dev@dpdk.org; > sta...@dpdk.org > Subject: [PATCH] service: fix early move to inactive status > > Assume thread T2 is

[PATCH] service: fix early move to inactive status

2022-10-20 Thread Erik Gabriel Carrillo
Assume thread T2 is a service lcore that is in the middle of executing a service function. Also, assume thread T1 concurrently calls rte_service_lcore_stop(), which will set the "service_active_on_lcore" state to false. If thread T1 then calls rte_service_may_be_active(), it can return zero even