Re: [dpdk-dev] [PATCH v2] service: fix race in service on app lcore function

2017-11-06 Thread Thomas Monjalon
02/11/2017 10:41, Bruce Richardson: > On Wed, Nov 01, 2017 at 06:48:01PM +, Harry van Haaren wrote: > > This commit fixes a possible race condition if an application > > uses the service-cores infrastructure and the function to run > > a service on an application lcore at the same time. > > >

Re: [dpdk-dev] [PATCH v2] service: fix race in service on app lcore function

2017-11-02 Thread Bruce Richardson
On Wed, Nov 01, 2017 at 06:48:01PM +, Harry van Haaren wrote: > This commit fixes a possible race condition if an application > uses the service-cores infrastructure and the function to run > a service on an application lcore at the same time. > > The fix is to change the num_mapped_cores vari

[dpdk-dev] [PATCH v2] service: fix race in service on app lcore function

2017-11-01 Thread Harry van Haaren
This commit fixes a possible race condition if an application uses the service-cores infrastructure and the function to run a service on an application lcore at the same time. The fix is to change the num_mapped_cores variable to be an atomic variable. This causes concurrent accesses by multiple t