]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 16 Oct 2012 14:13:18 +0000 (00:43 +1030)
commit99e61934f1e45dcba0509b0837a298fa49533030
treeb2638e5862b6ae1a2e0ef806f0ba317c3a86b2e2
parent17c2159e6289a64fb35903ca3d042f572492e238
virtio: move queue_index and num_free fields into core struct virtqueue.

They're generic concepts, so hoist them.  This also avoids accessor
functions.

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.

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