Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-25 Thread Jason Wang
On 2017年04月25日 23:35, Michael S. Tsirkin wrote: On Tue, Apr 25, 2017 at 12:07:01PM +0800, Jason Wang wrote: On 2017年04月24日 20:00, Michael S. Tsirkin wrote: On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: On 2017年04月24日 07:28, Michael S. Tsirkin wrote: On Tue, Apr 18, 2017 at

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-25 Thread Jason Wang
On 2017年04月25日 23:35, Michael S. Tsirkin wrote: On Tue, Apr 25, 2017 at 12:07:01PM +0800, Jason Wang wrote: On 2017年04月24日 20:00, Michael S. Tsirkin wrote: On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: On 2017年04月24日 07:28, Michael S. Tsirkin wrote: On Tue, Apr 18, 2017 at

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-25 Thread Michael S. Tsirkin
On Tue, Apr 25, 2017 at 12:07:01PM +0800, Jason Wang wrote: > > > On 2017年04月24日 20:00, Michael S. Tsirkin wrote: > > On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: > > > On 2017年04月24日 07:28, Michael S. Tsirkin wrote: > > > > On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-25 Thread Michael S. Tsirkin
On Tue, Apr 25, 2017 at 12:07:01PM +0800, Jason Wang wrote: > > > On 2017年04月24日 20:00, Michael S. Tsirkin wrote: > > On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: > > > On 2017年04月24日 07:28, Michael S. Tsirkin wrote: > > > > On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-24 Thread Jason Wang
On 2017年04月24日 20:00, Michael S. Tsirkin wrote: On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: On 2017年04月24日 07:28, Michael S. Tsirkin wrote: On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: On 2017年04月17日 07:19, Michael S. Tsirkin wrote: Applications that consume

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-24 Thread Jason Wang
On 2017年04月24日 20:00, Michael S. Tsirkin wrote: On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: On 2017年04月24日 07:28, Michael S. Tsirkin wrote: On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: On 2017年04月17日 07:19, Michael S. Tsirkin wrote: Applications that consume

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-24 Thread Michael S. Tsirkin
On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: > > > On 2017年04月24日 07:28, Michael S. Tsirkin wrote: > > On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: > > > > > > On 2017年04月17日 07:19, Michael S. Tsirkin wrote: > > > > Applications that consume a batch of entries in

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-24 Thread Michael S. Tsirkin
On Mon, Apr 24, 2017 at 07:54:18PM +0800, Jason Wang wrote: > > > On 2017年04月24日 07:28, Michael S. Tsirkin wrote: > > On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: > > > > > > On 2017年04月17日 07:19, Michael S. Tsirkin wrote: > > > > Applications that consume a batch of entries in

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-24 Thread Jason Wang
On 2017年04月24日 07:28, Michael S. Tsirkin wrote: On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: On 2017年04月17日 07:19, 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

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-24 Thread Jason Wang
On 2017年04月24日 07:28, Michael S. Tsirkin wrote: On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: On 2017年04月17日 07:19, 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

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-23 Thread Michael S. Tsirkin
On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: > > > On 2017年04月17日 07:19, 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] ptr_ring: add ptr_ring_unconsume

2017-04-23 Thread Michael S. Tsirkin
On Tue, Apr 18, 2017 at 11:07:42AM +0800, Jason Wang wrote: > > > On 2017年04月17日 07:19, 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] ptr_ring: add ptr_ring_unconsume

2017-04-17 Thread Jason Wang
On 2017年04月17日 07:19, 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 we can't do this and have to drop entries, but

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-17 Thread Jason Wang
On 2017年04月17日 07:19, 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 we can't do this and have to drop entries, but

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-17 Thread Sergei Shtylyov
Hello! On 4/17/2017 2:19 AM, 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 we can't do this and have to drop

Re: [PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-17 Thread Sergei Shtylyov
Hello! On 4/17/2017 2:19 AM, 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 we can't do this and have to drop

[PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-16 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 we can't do this and have to drop entries, but this implies ring is full so we'd likely drop some

[PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-16 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 we can't do this and have to drop entries, but this implies ring is full so we'd likely drop some