scsi: lpfc: Set sli4_param's cmf option to zero when CMF is turned off

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>
This commit is contained in:
Justin Tee
2022-10-17 09:43:19 -07:00
committed by Martin K. Petersen
parent e6f8a22ff4
commit 4fc66e7b16

View File

@@ -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;
}
}