virtio: move queue_index and num_free fields into core struct virtqueue.
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:31 +0000 (15:20 +1030)
commit06ca287dbac9cc19d04ac2901b8c4882c03795ff
tree37574b40e4b18070fe92e88f722035159aa341fb
parent1ce6853aa0f8e1cc3ae811a85d50cde6ad0ef735
virtio: move queue_index and num_free fields into core struct virtqueue.

They're generic concepts, so hoist them.  This also avoids accessor
functions (though kept around for merge with DaveM's net tree).

This goes even further than Jason Wang's 17bb6d4088 patch
("virtio-ring: move queue_index to vring_virtqueue") which moved the
queue_index from the specific transport.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_mmio.c
drivers/virtio/virtio_pci.c
drivers/virtio/virtio_ring.c
include/linux/virtio.h