[dpdk-dev] [PATCH] lib: change rte_ring dequeue to guarantee ordering before tail update

Jerin Jacob jerin.jacob at caviumnetworks.com
Sat Jul 23 08:05:16 CEST 2016


On Thu, Jul 21, 2016 at 11:26:50PM +0200, Thomas Monjalon wrote:
> > > Consumer queue dequeuing must be guaranteed to be done fully before the tail is updated. This is not guaranteed with a read barrier,
> > > changed to a write barrier just before tail update which in practice guarantees correct order of reads and writes.
> > > 
> > > Signed-off-by: Juhamatti Kuusisaari <juhamatti.kuusisaari at coriant.com>
> > 
> > Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
> 
> Applied, thanks

There was ongoing discussion on this
http://dpdk.org/ml/archives/dev/2016-July/044168.html
This change may not be required as it has the performance impact.





More information about the dev mailing list