]> www.infradead.org Git - users/dwmw2/linux.git/commit
scsi: lpfc: Fix split code for FLOGI on FCoE
authorJames Smart <jsmart2021@gmail.com>
Fri, 6 May 2022 20:55:28 +0000 (13:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 01:43:21 +0000 (21:43 -0400)
commitcc28fac16ab7152168be8bee76708df9d65efd71
tree62c7f8714c57b661cfb4534589747fa47cf7f526
parent26f9ce53817a8fd84b69a73473a7de852a24c897
scsi: lpfc: Fix split code for FLOGI on FCoE

The refactoring code converted context information from SLI-3 to SLI-4.
The conversion for the SLI-4 bit field tried to use the old (hacky) SLI3
high/low bit settings.  Needless to say, it was incorrect.

Explicitly set the context field to type FCFI and set it in the wqe.
SLI-4 is now a proper bit field so no need for the shifting/anding.

Link: https://lore.kernel.org/r/20220506205528.61590-1-jsmart2021@gmail.com
Fixes: 6831ce129f19 ("scsi: lpfc: SLI path split: Refactor base ELS paths and the FLOGI path")
Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c