]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_pci: split vp_try_to_find_vqs into INTx and MSI-X variants
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Nov 2016 10:43:16 +0000 (11:43 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 22:12:49 +0000 (00:12 +0200)
commit280ae004a539699bde854b005614517eecccfe63
treecbe299e049f0fc919f37210714878e4d659ffa14
parent28f5d8087765284382562b98755562bedff28994
virtio_pci: split vp_try_to_find_vqs into INTx and MSI-X variants

There is basically no shared logic between the INTx and MSI-X case in
vp_try_to_find_vqs, so split the function into two and clean them up
a little bit.

Also remove the fairly pointless vp_request_intx wrapper while we're at it.

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