scsi: lpfc: Revise lpfc_error_lost_link() reason code evaluation logic
authorJustin Tee <justin.tee@broadcom.com>
Wed, 1 Mar 2023 23:16:24 +0000 (15:16 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Mar 2023 02:21:45 +0000 (21:21 -0500)
commit796876fdaefe504a2f3abe7445d57e886a2af139
treeff91ea27ba1a6ff668ef2e7f817434d138828fd5
parent27c2bcf00ade1aefedd6298fcc151704c2d8ce6d
scsi: lpfc: Revise lpfc_error_lost_link() reason code evaluation logic

Extended status reason code errors should mask off the IOERR_PARAM_MASK
before checking strict equalities for IOERR values.

Update the lpfc_error_lost_link() routine as such.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230301231626.9621-9-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_crtn.h
drivers/scsi/lpfc/lpfc_ct.c
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_hbadisc.c
drivers/scsi/lpfc/lpfc_hw.h