]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio_pci: remove struct virtio_pci_vq_info
authorChristoph Hellwig <hch@lst.de>
Sun, 5 Feb 2017 17:15:18 +0000 (18:15 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Feb 2017 18:54:03 +0000 (20:54 +0200)
commit5c34d002dcc7a6dd665a19d098b4f4cd5501ba1a
tree468b58c44812994e2f0a397af42c8dbb8fce451e
parente3b56cdd4351f0e227d4d847eeadff4c82aef1b9
virtio_pci: remove struct virtio_pci_vq_info

We don't really need struct virtio_pci_vq_info, as most field in there
are redundant:

 - the vq backpointer is not strictly neede to start with
 - the entry in the vqs list is not needed - the generic virtqueue already
   has list, we only need to check if it has a callback to get the same
   semantics
 - we can use a simple array to look up the MSI-X vec if needed.
 - That simple array now also duoble serves to replace the per_vq_vectors
   flag

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_common.c
drivers/virtio/virtio_pci_common.h
drivers/virtio/virtio_pci_legacy.c
drivers/virtio/virtio_pci_modern.c