]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio_net: don't rely on virtqueue_add_buf() returning capacity.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 16 Oct 2012 13:26:14 +0000 (23:56 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Oct 2012 07:50:06 +0000 (18:20 +1030)
commite794093a52cdfef09b3fdb6294b75ab8cacb30a8
tree041620a1fb64b81cf28a6fcddaa09327402070b5
parent2c6d439a7316d1345e0ee7483b0e728974499fa8
virtio_net: don't rely on virtqueue_add_buf() returning capacity.

Now we can easily use vq->num_free to determine if there are descriptors
left in the queue, we're about to change virtqueue_add_buf() to return 0
on success.  The virtio_net driver is the only one which actually uses
the return value, so change that.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c