mbox series

[v3,0/1] ring: enforce reading the tail before reading ring slots

Message ID 1552409933-45684-1-git-send-email-gavin.hu@arm.com (mailing list archive)
Headers
Series ring: enforce reading the tail before reading ring slots |

Message

Gavin Hu March 12, 2019, 4:58 p.m. UTC
  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(-)