summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Tee <justin.tee@broadcom.com>2022-10-17 09:43:19 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2022-10-22 03:19:15 +0000
commit4fc66e7b16adf054e8dc7a5cd189085b8f545091 (patch)
tree0abcdb0f43b2bf125803afd25306296c9fe2a4f0
parente6f8a22ff4a14aeada44c8f78dfb7503f2ca318f (diff)
downloadlwn-4fc66e7b16adf054e8dc7a5cd189085b8f545091.tar.gz
lwn-4fc66e7b16adf054e8dc7a5cd189085b8f545091.zip
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>
-rw-r--r--drivers/scsi/lpfc/lpfc_sli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c
index 99d06dc7ddf6..768294b9bc0b 100644
--- a/drivers/scsi/lpfc/lpfc_sli.c
+++ b/drivers/scsi/lpfc/lpfc_sli.c
@@ -8354,6 +8354,7 @@ no_cmf:
phba->cgn_i = NULL;
/* Ensure CGN Mode is off */
phba->cmf_active_mode = LPFC_CFG_OFF;
+ sli4_params->cmf = 0;
return 0;
}
}