scsi: qla2xxx: edif: Increase ELS payload
Currently, firmware limits ELS payload to FC frame size/2112. This patch
adjusts memory buffer size to be able to handle max ELS payload.
Link: https://lore.kernel.org/r/20211026115412.27691-11-njavali@marvell.com
Fixes: 84318a9f01
("scsi: qla2xxx: edif: Add send, receive, and accept for auth_els")
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Родитель
91f6f5fbe8
Коммит
0f6d600a26
|
@ -2370,7 +2370,7 @@ void qla24xx_auth_els(scsi_qla_host_t *vha, void **pkt, struct rsp_que **rsp)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (totlen > MAX_PAYLOAD) {
|
if (totlen > ELS_MAX_PAYLOAD) {
|
||||||
ql_dbg(ql_dbg_edif, vha, 0x0910d,
|
ql_dbg(ql_dbg_edif, vha, 0x0910d,
|
||||||
"%s WARNING: verbose ELS frame received (totlen=%x)\n",
|
"%s WARNING: verbose ELS frame received (totlen=%x)\n",
|
||||||
__func__, totlen);
|
__func__, totlen);
|
||||||
|
|
|
@ -93,7 +93,6 @@ struct sa_update_28xx {
|
||||||
};
|
};
|
||||||
|
|
||||||
#define NUM_ENTRIES 256
|
#define NUM_ENTRIES 256
|
||||||
#define MAX_PAYLOAD 1024
|
|
||||||
#define PUR_GET 1
|
#define PUR_GET 1
|
||||||
|
|
||||||
struct dinfo {
|
struct dinfo {
|
||||||
|
@ -127,6 +126,8 @@ struct enode {
|
||||||
} u;
|
} u;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define RX_ELS_SIZE (roundup(sizeof(struct enode) + ELS_MAX_PAYLOAD, SMP_CACHE_BYTES))
|
||||||
|
|
||||||
#define EDIF_SESSION_DOWN(_s) \
|
#define EDIF_SESSION_DOWN(_s) \
|
||||||
(qla_ini_mode_enabled(_s->vha) && (_s->disc_state == DSC_DELETE_PEND || \
|
(qla_ini_mode_enabled(_s->vha) && (_s->disc_state == DSC_DELETE_PEND || \
|
||||||
_s->disc_state == DSC_DELETED || \
|
_s->disc_state == DSC_DELETED || \
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
#define __QLA_EDIF_BSG_H
|
#define __QLA_EDIF_BSG_H
|
||||||
|
|
||||||
/* BSG Vendor specific commands */
|
/* BSG Vendor specific commands */
|
||||||
#define ELS_MAX_PAYLOAD 1024
|
#define ELS_MAX_PAYLOAD 2112
|
||||||
#ifndef WWN_SIZE
|
#ifndef WWN_SIZE
|
||||||
#define WWN_SIZE 8
|
#define WWN_SIZE 8
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -4486,6 +4486,10 @@ qla2x00_init_rings(scsi_qla_host_t *vha)
|
||||||
(ha->flags.fawwpn_enabled) ? "enabled" : "disabled");
|
(ha->flags.fawwpn_enabled) ? "enabled" : "disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ELS pass through payload is limit by frame size. */
|
||||||
|
if (ha->flags.edif_enabled)
|
||||||
|
mid_init_cb->init_cb.frame_payload_size = cpu_to_le16(ELS_MAX_PAYLOAD);
|
||||||
|
|
||||||
rval = qla2x00_init_firmware(vha, ha->init_cb_size);
|
rval = qla2x00_init_firmware(vha, ha->init_cb_size);
|
||||||
next_check:
|
next_check:
|
||||||
if (rval) {
|
if (rval) {
|
||||||
|
|
|
@ -4352,7 +4352,7 @@ qla2x00_mem_alloc(struct qla_hw_data *ha, uint16_t req_len, uint16_t rsp_len,
|
||||||
|
|
||||||
/* allocate the purex dma pool */
|
/* allocate the purex dma pool */
|
||||||
ha->purex_dma_pool = dma_pool_create(name, &ha->pdev->dev,
|
ha->purex_dma_pool = dma_pool_create(name, &ha->pdev->dev,
|
||||||
MAX_PAYLOAD, 8, 0);
|
ELS_MAX_PAYLOAD, 8, 0);
|
||||||
|
|
||||||
if (!ha->purex_dma_pool) {
|
if (!ha->purex_dma_pool) {
|
||||||
ql_dbg_pci(ql_dbg_init, ha->pdev, 0x011b,
|
ql_dbg_pci(ql_dbg_init, ha->pdev, 0x011b,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче