Change log: -V1: First version of the patch. -V2: Update the commit message to describe the ordering of detailed memory accesses.
-V3: As suggested by Konstantin Ananyev, remove the rte_smp_rmb for enqueue case, as there is a control dependency in place, making rmb unnecessary. For dequeue case, it is still required as the control dependency does not order loads with loads. gavin hu (1): ring: enforce reading the tail before reading ring slots lib/librte_ring/rte_ring_generic.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.7.4