Skip to content

Commit

Permalink
scsi: lpfc: Set sli4_param's cmf option to zero when CMF is turned off
Browse files Browse the repository at this point in the history
Add missed clearing of phba->sli4_hba.pc_sli4_params.cmf when CMF is turned
off.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20221017164323.14536-1-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Justin Tee authored and Martin K. Petersen committed Oct 22, 2022
1 parent e6f8a22 commit 4fc66e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/lpfc/lpfc_sli.c
Original file line number Diff line number Diff line change
Expand Up @@ -8354,6 +8354,7 @@ lpfc_cmf_setup(struct lpfc_hba *phba)
phba->cgn_i = NULL;
/* Ensure CGN Mode is off */
phba->cmf_active_mode = LPFC_CFG_OFF;
sli4_params->cmf = 0;
return 0;
}
}
Expand Down

0 comments on commit 4fc66e7

Please sign in to comment.