]> git.baikalelectronics.ru Git - kernel.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)
commitc54675b91aad671c44ccd3c71c4d264bee851767
tree62c7f8714c57b661cfb4534589747fa47cf7f526
parent075f80601c66615c5e8ad98f855e34e14046058e
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: 2550b64d0742 ("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