vmw_pvrdma: switch to pci_alloc_irq_vectors
Subsystems (2)
PATCH v2 1/1 vmw_pvrdma: switch to pci_alloc_irq_vectors
.. and greatly clean up the irq handling boilerplate code.
Signed-off-by Christoph Hellwig <[email protected]>
--- drivers/infiniband/hw/vmw_pvrdma/pvrdma.h | 8 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h | 6 - drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 162 +++++----------------- 3 files changed, 34 insertions(+), 142 deletions(-)
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h +1 -7
@@ -196,13 +196,7 @@ struct pvrdma_dev {spinlock_t cmd_lock;/* Command lock. */ struct semaphore cmd_sema;struct completion cmd_done; -struct { -enum pvrdma_intr_type type;/* Intr type */ -struct msix_entry msix_entry[PVRDMA_MAX_INTERRUPTS ]; -irq_handler_t handler[PVRDMA_MAX_INTERRUPTS ]; -u8 enabled[PVRDMA_MAX_INTERRUPTS ]; -u8 size; - } intr; +unsigned int nr_vectors;/* RDMA-related device information. */ union ib_gid *sgid_tbl;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h +0 -6
@@ -149,12 +149,6 @@ enum pvrdma_intr_cause { PVRDMA_INTR_CAUSE_CQ = (1 << PVRDMA_INTR_VECTOR_CQ), }; -enum pvrdma_intr_type { -PVRDMA_INTR_TYPE_INTX ,/* Legacy. */ -PVRDMA_INTR_TYPE_MSI ,/* MSI. */ -PVRDMA_INTR_TYPE_MSIX ,/* MSI-X. */ -}; -enum pvrdma_gos_bits {PVRDMA_GOS_BITS_UNK ,/* Unknown. */ PVRDMA_GOS_BITS_32 ,/* 32-bit. */
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c +33 -129
211 lines not on this page · raw message
Signature · 6 lines
2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Adit Ranadive
Acked-byQuoted 8 lines · Christoph Hellwig
.. and greatly clean up the irq handling boilerplate code.
Signed-off-by Christoph Hellwig <[email protected]>--- drivers/infiniband/hw/vmw_pvrdma/pvrdma.h | 8 +- drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h | 6 - drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c | 162 +++++----------------- 3 files changed, 34 insertions(+), 142 deletions(-)
Thanks.
Acked-by Adit Ranadive <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Doug Ledford
AppliedQuoted 3 lines · Christoph Hellwig
.. and greatly clean up the irq handling boilerplate code.
Signed-off-by Christoph Hellwig <[email protected]>
Thanks, applied.
Signature · 4 lines
Doug Ledford <[email protected]> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD