]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: indirect ring entries (VIRTIO_RING_F_INDIRECT_DESC)
authorMark McLoughlin <markmc@redhat.com>
Mon, 11 May 2009 17:11:45 +0000 (18:11 +0100)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Jun 2009 12:46:39 +0000 (22:16 +0930)
commit50d5c274909dcfb697ea2cb6901bbd2173e505e5
treec44177d2d352f74300fe9124decc6462c8804bbe
parentfa0777aca676988794c4226976ca4c93163cf032
virtio: indirect ring entries (VIRTIO_RING_F_INDIRECT_DESC)

Add a new feature flag for indirect ring entries. These are ring
entries which point to a table of buffer descriptors.

The idea here is to increase the ring capacity by allowing a larger
effective ring size whereby the ring size dictates the number of
requests that may be outstanding, rather than the size of those
requests.

This should be most effective in the case of block I/O where we can
potentially benefit by concurrently dispatching a large number of
large requests. Even in the simple case of single segment block
requests, this results in a threefold increase in ring capacity.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_ring.c
include/linux/virtio_ring.h