Re: [PATCH v8 4/5] ptr_ring: resize support

2016-06-14 Thread Jesper Dangaard Brouer
On Mon, 13 Jun 2016 23:54:45 +0300 "Michael S. Tsirkin" wrote: > This adds ring resize support. Seems to be necessary as > users such as tun allow userspace control over queue size. > > If resize is used, this costs us ability to peek at queue without > consumer lock - should

Re: [PATCH v8 4/5] ptr_ring: resize support

2016-06-14 Thread Jesper Dangaard Brouer
On Mon, 13 Jun 2016 23:54:45 +0300 "Michael S. Tsirkin" wrote: > This adds ring resize support. Seems to be necessary as > users such as tun allow userspace control over queue size. > > If resize is used, this costs us ability to peek at queue without > consumer lock - should not be a big deal

[PATCH v8 4/5] ptr_ring: resize support

2016-06-13 Thread Michael S. Tsirkin
This adds ring resize support. Seems to be necessary as users such as tun allow userspace control over queue size. If resize is used, this costs us ability to peek at queue without consumer lock - should not be a big deal as peek and consumer are usually run on the same CPU. If ring is made

[PATCH v8 4/5] ptr_ring: resize support

2016-06-13 Thread Michael S. Tsirkin
This adds ring resize support. Seems to be necessary as users such as tun allow userspace control over queue size. If resize is used, this costs us ability to peek at queue without consumer lock - should not be a big deal as peek and consumer are usually run on the same CPU. If ring is made