aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_mbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_mbox.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_mbox.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/scsi/lpfc/lpfc_mbox.c b/drivers/scsi/lpfc/lpfc_mbox.c
index 2ebc7d2540c..0228f04061d 100644
--- a/drivers/scsi/lpfc/lpfc_mbox.c
+++ b/drivers/scsi/lpfc/lpfc_mbox.c
@@ -2175,16 +2175,15 @@ lpfc_unreg_vfi(struct lpfcMboxq *mbox, struct lpfc_vport *vport)
2175} 2175}
2176 2176
2177/** 2177/**
2178 * lpfc_dump_fcoe_param - Dump config region 23 to get FCoe parameters. 2178 * lpfc_sli4_dump_cfg_rg23 - Dump sli4 port config region 23
2179 * @phba: pointer to the hba structure containing. 2179 * @phba: pointer to the hba structure containing.
2180 * @mbox: pointer to lpfc mbox command to initialize. 2180 * @mbox: pointer to lpfc mbox command to initialize.
2181 * 2181 *
2182 * This function create a SLI4 dump mailbox command to dump FCoE 2182 * This function create a SLI4 dump mailbox command to dump configure
2183 * parameters stored in region 23. 2183 * region 23.
2184 **/ 2184 **/
2185int 2185int
2186lpfc_dump_fcoe_param(struct lpfc_hba *phba, 2186lpfc_sli4_dump_cfg_rg23(struct lpfc_hba *phba, struct lpfcMboxq *mbox)
2187 struct lpfcMboxq *mbox)
2188{ 2187{
2189 struct lpfc_dmabuf *mp = NULL; 2188 struct lpfc_dmabuf *mp = NULL;
2190 MAILBOX_t *mb; 2189 MAILBOX_t *mb;
@@ -2198,9 +2197,9 @@ lpfc_dump_fcoe_param(struct lpfc_hba *phba,
2198 2197
2199 if (!mp || !mp->virt) { 2198 if (!mp || !mp->virt) {
2200 kfree(mp); 2199 kfree(mp);
2201 /* dump_fcoe_param failed to allocate memory */ 2200 /* dump config region 23 failed to allocate memory */
2202 lpfc_printf_log(phba, KERN_WARNING, LOG_MBOX, 2201 lpfc_printf_log(phba, KERN_WARNING, LOG_MBOX,
2203 "2569 lpfc_dump_fcoe_param: memory" 2202 "2569 lpfc dump config region 23: memory"
2204 " allocation failed\n"); 2203 " allocation failed\n");
2205 return 1; 2204 return 1;
2206 } 2205 }