Skip to content

Commit cc28fac

Browse files
jsmart-ghmartinkpetersen
authored andcommitted
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/[email protected] Fixes: 6831ce1 ("scsi: lpfc: SLI path split: Refactor base ELS paths and the FLOGI path") Co-developed-by: Dick Kennedy <[email protected]> Signed-off-by: Dick Kennedy <[email protected]> Signed-off-by: James Smart <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 26f9ce5 commit cc28fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_els.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ lpfc_issue_els_flogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
13301330
if (bf_get(lpfc_sli_intf_if_type, &phba->sli4_hba.sli_intf) ==
13311331
LPFC_SLI_INTF_IF_TYPE_0) {
13321332
/* FLOGI needs to be 3 for WQE FCFI */
1333-
ct = ((SLI4_CT_FCFI >> 1) & 1) | (SLI4_CT_FCFI & 1);
1333+
ct = SLI4_CT_FCFI;
13341334
bf_set(wqe_ct, &wqe->els_req.wqe_com, ct);
13351335

13361336
/* Set the fcfi to the fcfi we registered with */

0 commit comments

Comments
 (0)