aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skb_array.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-06-13 23:54:45 +0300
committerDavid S. Miller <davem@davemloft.net>2016-06-15 13:58:27 -0700
commit5d49de532002f02755decd1758aac53063a68625 (patch)
treec021cc8b8f5a729624c39a1cc38234ae17ea3f29 /include/linux/skb_array.h
parentskb_array: array based FIFO for skbs (diff)
downloadlinux-dev-5d49de532002f02755decd1758aac53063a68625.tar.xz
linux-dev-5d49de532002f02755decd1758aac53063a68625.zip
ptr_ring: resize support
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skb_array.h')
0 files changed, 0 insertions, 0 deletions