Commit dc58f44c authored by James Smart's avatar James Smart Committed by Martin K. Petersen

scsi: lpfc: Correct embedded io wq element size

Correct embedded io wq element size. Embedded element sizes are
128 byte elements
Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4b160ae8
...@@ -7256,6 +7256,7 @@ int ...@@ -7256,6 +7256,7 @@ int
lpfc_sli4_queue_create(struct lpfc_hba *phba) lpfc_sli4_queue_create(struct lpfc_hba *phba)
{ {
struct lpfc_queue *qdesc; struct lpfc_queue *qdesc;
uint32_t wqesize;
int idx; int idx;
/* /*
...@@ -7340,15 +7341,10 @@ lpfc_sli4_queue_create(struct lpfc_hba *phba) ...@@ -7340,15 +7341,10 @@ lpfc_sli4_queue_create(struct lpfc_hba *phba)
phba->sli4_hba.fcp_cq[idx] = qdesc; phba->sli4_hba.fcp_cq[idx] = qdesc;
/* Create Fast Path FCP WQs */ /* Create Fast Path FCP WQs */
if (phba->fcp_embed_io) { wqesize = (phba->fcp_embed_io) ?
qdesc = lpfc_sli4_queue_alloc(phba, LPFC_WQE128_SIZE : phba->sli4_hba.wq_esize;
LPFC_WQE128_SIZE, qdesc = lpfc_sli4_queue_alloc(phba, wqesize,
LPFC_WQE128_DEF_COUNT); phba->sli4_hba.wq_ecount);
} else {
qdesc = lpfc_sli4_queue_alloc(phba,
phba->sli4_hba.wq_esize,
phba->sli4_hba.wq_ecount);
}
if (!qdesc) { if (!qdesc) {
lpfc_printf_log(phba, KERN_ERR, LOG_INIT, lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
"0503 Failed allocate fast-path FCP " "0503 Failed allocate fast-path FCP "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment