commit | 9ed4cb073438e2154778f0d693d966359afd6549 | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Tue Oct 16 23:56:14 2012 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Tue Dec 18 15:20:33 2012 +1030 |
tree | d69dcb3b8a8cf9b719a8ee648551debbbf3152b6 | |
parent | 7bedc7dc7c05e6072dc81da770f70c683c45da10 [diff] |
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>