* [PATCH] lpfc: Fix split code for FLOGI on FCoE
@ 2022-05-06 20:55 James Smart
2022-05-11 2:38 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: James Smart @ 2022-05-06 20:55 UTC (permalink / raw)
To: linux-scsi; +Cc: James Smart, Dick Kennedy
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.
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>
---
drivers/scsi/lpfc/lpfc_els.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c
index 51c505d15410..07f9a6e61e10 100644
--- a/drivers/scsi/lpfc/lpfc_els.c
+++ b/drivers/scsi/lpfc/lpfc_els.c
@@ -1317,7 +1317,7 @@ lpfc_issue_els_flogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
if (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) ==
LPFC_SLI_INTF_IF_TYPE_0) {
/* FLOGI needs to be 3 for WQE FCFI */
- ct = ((SLI4_CT_FCFI >> 1) & 1) | (SLI4_CT_FCFI & 1);
+ ct = SLI4_CT_FCFI;
bf_set(wqe_ct, &wqe->els_req.wqe_com, ct);
/* Set the fcfi to the fcfi we registered with */
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lpfc: Fix split code for FLOGI on FCoE
2022-05-06 20:55 [PATCH] lpfc: Fix split code for FLOGI on FCoE James Smart
@ 2022-05-11 2:38 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2022-05-11 2:38 UTC (permalink / raw)
To: James Smart, linux-scsi; +Cc: Martin K . Petersen, Dick Kennedy
On Fri, 6 May 2022 13:55:28 -0700, James Smart wrote:
> 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.
>
> [...]
Applied to 5.18/scsi-fixes, thanks!
[1/1] lpfc: Fix split code for FLOGI on FCoE
https://git.kernel.org/mkp/scsi/c/cc28fac16ab7
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-11 2:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-06 20:55 [PATCH] lpfc: Fix split code for FLOGI on FCoE James Smart
2022-05-11 2:38 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox