diff options
author | 2017-02-05 18:15:19 +0100 | |
---|---|---|
committer | 2017-02-27 20:54:03 +0200 | |
commit | 07ec51480b5eb1233f8c1b0f5d7a7c8d1247c507 (patch) | |
tree | ddf6e2c0d8259437966396771dd09828c147dde7 /drivers/net/caif | |
parent | virtio_pci: remove struct virtio_pci_vq_info (diff) | |
download | linux-07ec51480b5eb1233f8c1b0f5d7a7c8d1247c507.tar.gz linux-07ec51480b5eb1233f8c1b0f5d7a7c8d1247c507.tar.bz2 linux-07ec51480b5eb1233f8c1b0f5d7a7c8d1247c507.zip |
virtio_pci: use shared interrupts for virtqueues
This lets IRQ layer handle dispatching IRQs to separate handlers for the
case where we don't have per-VQ MSI-X vectors, and allows us to greatly
simplify the code based on the assumption that we always have interrupt
vector 0 (legacy INTx or config interrupt for MSI-X) available, and
any other interrupt is request/freed throught the VQ, even if the
actual interrupt line might be shared in some cases.
This allows removing a great deal of variables keeping track of the
interrupt state in struct virtio_pci_device, as we can now simply walk the
list of VQs and deal with per-VQ interrupt handlers there, and only treat
vector 0 special.
Additionally clean up the VQ allocation code to properly unwind on error
instead of having a single global cleanup label, which is error prone,
and in this case also leads to more code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/net/caif')
0 files changed, 0 insertions, 0 deletions