OSDN Git Service

scsi: lpfc: Utilize new IRQ API when allocating MSI-X vectors
authorJames Smart <jsmart2021@gmail.com>
Mon, 28 Jan 2019 19:14:34 +0000 (11:14 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Feb 2019 03:29:49 +0000 (22:29 -0500)
commit75508a8b8b2de1b39b72e7dc31505cddc8354a01
tree1acafbdb483ec4a1ebd7dc8b0ce5eac07f988bc8
parent32517fc0975bf8dd3967e43c2a6350f038a3af28
scsi: lpfc: Utilize new IRQ API when allocating MSI-X vectors

Current driver uses the older IRQ API for MSIX allocation

Change driver to utilize pci_alloc_irq_vectors when allocating IRQ vectors.

Make lpfc_cpu_affinity_check use pci_irq_get_affinity to determine how the
kernel mapped all the IRQs.

Remove msix_entries from SLI4 structure, replaced with pci_irq_vector()
usage.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c