Re: [dpdk-dev] [PATCH v2 1/1] eal: add 128-bit cmpxchg (x86-64 only)

2019-03-04 Thread Eads, Gage
[snip] > > +/** > > + * An atomic compare and set function used by the mutex functions. > > + * (Atomically) Equivalent to: > > + * if (*dst == exp) > Should be, "if (*dst == *exp)" > > > + * *dst = src > Should be "*dst = *src" > Good catches, will fix both. > > + * else > > + * *

Re: [dpdk-dev] [PATCH v2 1/1] eal: add 128-bit cmpxchg (x86-64 only)

2019-03-04 Thread Honnappa Nagarahalli
> This operation can be used for non-blocking algorithms, such as a non-blocking > stack or ring. > > Signed-off-by: Gage Eads > --- > .../common/include/arch/x86/rte_atomic_64.h| 33 > lib/librte_eal/common/include/generic/rte_atomic.h | 59 > ++ > 2 fil

[dpdk-dev] [PATCH v2 1/1] eal: add 128-bit cmpxchg (x86-64 only)

2019-02-22 Thread Gage Eads
This operation can be used for non-blocking algorithms, such as a non-blocking stack or ring. Signed-off-by: Gage Eads --- .../common/include/arch/x86/rte_atomic_64.h| 33 lib/librte_eal/common/include/generic/rte_atomic.h | 59 ++ 2 files changed, 92 ins