OSDN Git Service

scsi: lpfc: Rework lpfc to allow different sli4 cq and eq handlers
authorJames Smart <jsmart2021@gmail.com>
Thu, 22 Feb 2018 16:18:40 +0000 (08:18 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 23 Feb 2018 01:39:28 +0000 (20:39 -0500)
commitb71413dd01bbf302236cfb61df44702ea838dd75
tree1e5cff62575f5db31d9683d05d2f51d1a145128a
parent501017f6d4e1feaa9ce3ff49c1190bc0588b3f02
scsi: lpfc: Rework lpfc to allow different sli4 cq and eq handlers

Up until now, an SLI-4 device had no variance in the way it handled
its EQs and CQs. With newer hardware, there are now differences in
doorbells and some differences in how entries are valid.

Prepare the code for new hardware by creating a sli4-based callout
table that can be set based on if_type.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_sli.c
drivers/scsi/lpfc/lpfc_sli4.h