Skip to contentSkip to conversation

vmw_pvrdma: switch to pci_alloc_irq_vectors

PATCH Applied Christoph Hellwig 3 participants 3 messages Feb 15, 2017 – Feb 19, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 vmw_pvrdma: switch to pci_alloc_irq_vectors

.. and greatly clean up the irq handling boilerplate code.

---
 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
index 71e1d55d69d6..3cd96c1b9502 100644
@@ -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
index c06768635d65..e69d6f3cae32 100644
@@ -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
Acked-by
#2 lore raw
In reply to a message not in the archive
Quoted 8 lines · Christoph Hellwig

.. and greatly clean up the irq handling boilerplate code.

---
 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.

--
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