Re: [dpdk-dev] [PATCH 1/5] lib/stack: fix inconsistent weak / strong cas

2020-09-21 Thread Eads, Gage
> -Original Message- > From: Steven Lariau > Sent: Friday, September 11, 2020 10:30 AM > To: Eads, Gage ; Olivier Matz > Cc: dev@dpdk.org; n...@arm.com; dharmik.thak...@arm.com; Steven Lariau > > Subject: [PATCH 1/5] lib/stack: fix inconsistent weak / strong cas > > Fix cmpexchange u

[dpdk-dev] [PATCH 1/5] lib/stack: fix inconsistent weak / strong cas

2020-09-11 Thread Steven Lariau
Fix cmpexchange usage of weak / strong. The generated code is the same on x86 and ARM (there is no weak cmpexchange), but the old usage was inconsistent. For push and pop update size, weak is used because cmpexchange is inside a loop. For pop update root, strong is used even though cmpexchange is i