Re: [dpdk-dev] [PATCH v3 01/15] eal: introduce atomic exchange operation

2018-03-08 Thread Stephen Hemminger
On Thu, 11 Jan 2018 17:01:10 + Ferruh Yigit wrote: > On 1/8/2018 5:45 PM, Stephen Hemminger wrote: > > To handle atomic update of link status (64 bit), every driver > > was doing its own version using cmpset. > > Atomic exchange is a useful primitive in its own right; > > therefore make it a

Re: [dpdk-dev] [PATCH v3 01/15] eal: introduce atomic exchange operation

2018-01-25 Thread Stephen Hemminger
On Thu, 11 Jan 2018 17:01:10 + Ferruh Yigit wrote: > On 1/8/2018 5:45 PM, Stephen Hemminger wrote: > > To handle atomic update of link status (64 bit), every driver > > was doing its own version using cmpset. > > Atomic exchange is a useful primitive in its own right; > > therefore make it a

Re: [dpdk-dev] [PATCH v3 01/15] eal: introduce atomic exchange operation

2018-01-11 Thread Ferruh Yigit
On 1/8/2018 5:45 PM, Stephen Hemminger wrote: > To handle atomic update of link status (64 bit), every driver > was doing its own version using cmpset. > Atomic exchange is a useful primitive in its own right; > therefore make it a EAL routine. > > Signed-off-by: Stephen Hemminger <...> > @@ -9

[dpdk-dev] [PATCH v3 01/15] eal: introduce atomic exchange operation

2018-01-08 Thread Stephen Hemminger
To handle atomic update of link status (64 bit), every driver was doing its own version using cmpset. Atomic exchange is a useful primitive in its own right; therefore make it a EAL routine. Signed-off-by: Stephen Hemminger --- .../common/include/arch/x86/rte_atomic.h | 24 +++ ...