Re: [dpdk-dev] [PATCH] test/service: fix race condition on stopping lcore

2020-10-16 Thread David Marchand
On Fri, Oct 16, 2020 at 11:18 AM Van Haaren, Harry wrote: > > Subject: [PATCH] test/service: fix race condition on stopping lcore > > > > There is a potential race condition in 'service_attr_get' which will cause > > test failures since the service core thread is still running while the > > values

Re: [dpdk-dev] [PATCH] test/service: fix race condition on stopping lcore

2020-10-16 Thread Van Haaren, Harry
> -Original Message- > From: David Marchand > Sent: Friday, October 16, 2020 12:50 PM > To: Laatz, Kevin ; Van Haaren, Harry > > Cc: dev ; Lukasz Wojciechowski > ; Honnappa Nagarahalli > ; Phil Yang ; Aaron > Conole > Subject: Re: [PATCH] test/service: fix race condition on stopping lcor

Re: [dpdk-dev] [PATCH] test/service: fix race condition on stopping lcore

2020-10-16 Thread David Marchand
On Fri, Oct 16, 2020 at 11:13 AM Kevin Laatz wrote: > > There is a potential race condition in 'service_attr_get' which will cause > test failures since the service core thread is still running while the > values are being retrieved/reset. > > This patch fixes the race condition by waiting for the

Re: [dpdk-dev] [PATCH] test/service: fix race condition on stopping lcore

2020-10-16 Thread Van Haaren, Harry
> -Original Message- > From: Laatz, Kevin > Sent: Friday, October 16, 2020 10:08 AM > To: dev@dpdk.org > Cc: Van Haaren, Harry ; > david.march...@redhat.com; l.wojciec...@partner.samsung.com; > honnappa.nagaraha...@arm.com; phil.y...@arm.com; acon...@redhat.com; > Laatz, Kevin > Subject:

[dpdk-dev] [PATCH] test/service: fix race condition on stopping lcore

2020-10-16 Thread Kevin Laatz
There is a potential race condition in 'service_attr_get' which will cause test failures since the service core thread is still running while the values are being retrieved/reset. This patch fixes the race condition by waiting for the service core thread to stop before continuing with the unit tes