virtio_ring: virtqueue_add_outbuf / virtqueue_add_inbuf.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:26 +0000 (15:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Mar 2013 05:14:52 +0000 (15:44 +1030)
commit282edb36499042a92b71f052f51754ae7ed936e4
tree5031caab94e52b30e48515e881ea87a32daaeaeb
parent13816c768d46586e925b22736992258d6105ad2c
virtio_ring: virtqueue_add_outbuf / virtqueue_add_inbuf.

These are specialized versions of virtqueue_add_buf(), which cover
over 80% of cases and are far clearer.

In particular, the scatterlists passed to these functions don't have
to be clean (ie. we ignore end markers).

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