Re: [dpdk-dev] [v1] ring: enforce reading the tails before ring operations

2019-03-06 Thread Gavin Hu (Arm Technology China)
Hi ilya, Thanks for your comments, inline comments and new commit message in V2. /Gavin > -Original Message- > From: Ilya Maximets > Sent: Wednesday, March 6, 2019 7:49 PM > To: Gavin Hu (Arm Technology China) ; > dev@dpdk.org > Cc: nd ; tho...@monjalon.net; jer...@marvell.com; > hemant

Re: [dpdk-dev] [v1] ring: enforce reading the tails before ring operations

2019-03-06 Thread Ilya Maximets
On 06.03.2019 6:07, gavin hu wrote: > In weak memory models, like arm64, reading the {prod,cons}.tail may get > reordered after reading or writing the ring slots, which corrupts the ring > and stale data is observed. > This issue was reported by NXP on 8-A72 DPAA2 board. The problem is most > likel