Re: [PATCH V2 net-next 1/7] ptr_ring: introduce batch dequeuing

2017-03-31 Thread Jason Wang
On 2017年03月31日 22:31, Michael S. Tsirkin wrote: On Fri, Mar 31, 2017 at 11:52:24AM +0800, Jason Wang wrote: On 2017年03月30日 21:53, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 03:22:24PM +0800, Jason Wang wrote: This patch introduce a batched version of consuming, consumer can dequeue mo

Re: [PATCH V2 net-next 1/7] ptr_ring: introduce batch dequeuing

2017-03-31 Thread Michael S. Tsirkin
On Fri, Mar 31, 2017 at 11:52:24AM +0800, Jason Wang wrote: > > > On 2017年03月30日 21:53, Michael S. Tsirkin wrote: > > On Thu, Mar 30, 2017 at 03:22:24PM +0800, Jason Wang wrote: > > > This patch introduce a batched version of consuming, consumer can > > > dequeue more than one pointers from the r

Re: [PATCH V2 net-next 1/7] ptr_ring: introduce batch dequeuing

2017-03-30 Thread Jason Wang
On 2017年03月30日 21:53, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 03:22:24PM +0800, Jason Wang wrote: 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 c

Re: [PATCH V2 net-next 1/7] ptr_ring: introduce batch dequeuing

2017-03-30 Thread Michael S. Tsirkin
On Thu, Mar 30, 2017 at 03:22:24PM +0800, Jason Wang wrote: > 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

[PATCH V2 net-next 1/7] ptr_ring: introduce batch dequeuing

2017-03-30 Thread Jason Wang
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 --- include/linux/ptr_ring.h | 65 +