ptr_ring: introduce batch dequeuing
authorJason Wang <jasowang@redhat.com>
Wed, 17 May 2017 04:14:39 +0000 (12:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 14:07:40 +0000 (10:07 -0400)
commit728fc8d5532b956f9c4b48dff0577fb722251343
treebeb325bc3fb5e45282313c9532af5c8df5a85f18
parent3acb696015a222f4b25c1b5dce4e36b2d4980da6
ptr_ring: introduce batch dequeuing

This patch introduce a batched version of consuming, consumer can
dequeue more than one pointers from the ring at a time. We don't care
about the reorder of reading here so no need for compiler barrier.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ptr_ring.h