]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6974f33c0b9581577866cdc4bcca957d71367d7b
tree1acafbdb483ec4a1ebd7dc8b0ce5eac07f988bc8
parentcbae7e1b91042cc8c4b67531ccad2b92bbfd11f4
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