Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1421846
| From | Jesper Dangaard Brouer <brouer@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v8 4/5] ptr_ring: resize support |
| Date | 2016-06-14 14:10 +0200 |
| Message-ID | <rJVkm-4Ei-17@gated-at.bofh.it> (permalink) |
| References | <rJH7H-2Zc-13@gated-at.bofh.it> <rJH7I-2Zc-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 13 Jun 2016 23:54:45 +0300 "Michael S. Tsirkin" <mst@redhat.com> 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 as peek and consumer are > usually run on the same CPU. > > If ring is made bigger, ring contents is preserved. If ring is made > smaller, extra pointers are passed to an optional destructor callback. > > Cleanup function also gains destructor callback such that > all pointers in queue can be cleaned up. > > This changes some APIs but we don't have any users yet, > so it won't break bisect. > > Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat Author of http://www.iptv-analyzer.org LinkedIn: http://www.linkedin.com/in/brouer
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v8 4/5] ptr_ring: resize support "Michael S. Tsirkin" <mst@redhat.com> - 2016-06-13 23:00 +0200 Re: [PATCH v8 4/5] ptr_ring: resize support Jesper Dangaard Brouer <brouer@redhat.com> - 2016-06-14 14:10 +0200
csiph-web