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>
Tue, 18 Dec 2012 04:50:33 +0000 (15:20 +1030)
commit9ed4cb073438e2154778f0d693d966359afd6549
treed69dcb3b8a8cf9b719a8ee648551debbbf3152b6
parent7bedc7dc7c05e6072dc81da770f70c683c45da10
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