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

2017-11-02 Thread Bruce Richardson
On Wed, Nov 01, 2017 at 05:59:51PM +, Van Haaren, Harry wrote: > > From: Richardson, Bruce > > Sent: Wednesday, November 1, 2017 5:09 PM > > To: Van Haaren, Harry > > Cc: dev@dpdk.org; pbhagavat...@caviumnetworks.com; tho...@monjalon.net > > Subject: Re: [dpdk-

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

2017-11-01 Thread Van Haaren, Harry
> From: Richardson, Bruce > Sent: Wednesday, November 1, 2017 5:09 PM > To: Van Haaren, Harry > Cc: dev@dpdk.org; pbhagavat...@caviumnetworks.com; tho...@monjalon.net > Subject: Re: [dpdk-dev] [PATCH] service: fix race in service on app lcore > function > > On Tue, Oc

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

2017-11-01 Thread Bruce Richardson
On Tue, Oct 31, 2017 at 11:49:02AM +, 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] service: fix race in service on app lcore function

2017-10-31 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