Re: [PATCH RFC v2] ptr_ring: add ptr_ring_unconsume

2017-05-09 Thread Jason Wang
On 2017年05月09日 21:26, Michael S. Tsirkin wrote: On Wed, Apr 26, 2017 at 05:09:42PM +0800, Jason Wang wrote: On 2017年04月25日 00:01, Michael S. Tsirkin wrote: Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API f

Re: [PATCH RFC v2] ptr_ring: add ptr_ring_unconsume

2017-05-09 Thread Michael S. Tsirkin
On Wed, Apr 26, 2017 at 05:09:42PM +0800, Jason Wang wrote: > > > On 2017年04月25日 00:01, Michael S. Tsirkin wrote: > > Applications that consume a batch of entries in one go > > can benefit from ability to return some of them back > > into the ring. > > > > Add an API for that - assuming there's

Re: [PATCH RFC v2] ptr_ring: add ptr_ring_unconsume

2017-04-26 Thread Michael S. Tsirkin
On Wed, Apr 26, 2017 at 05:09:42PM +0800, Jason Wang wrote: > > > On 2017年04月25日 00:01, Michael S. Tsirkin wrote: > > Applications that consume a batch of entries in one go > > can benefit from ability to return some of them back > > into the ring. > > > > Add an API for that - assuming there's

Re: [PATCH RFC v2] ptr_ring: add ptr_ring_unconsume

2017-04-26 Thread Jason Wang
On 2017年04月25日 00:01, Michael S. Tsirkin wrote: Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API for that - assuming there's space. If there's no space naturally can't do this and have to drop entries, but thi

[PATCH RFC v2] ptr_ring: add ptr_ring_unconsume

2017-04-24 Thread Michael S. Tsirkin
Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API for that - assuming there's space. If there's no space naturally can't do this and have to drop entries, but this implies ring is full so we'd likely drop some anyw