提交 ae97c91e 编写于 作者: A Andrew Vasquez 提交者: James Bottomley

[SCSI] qla2xxx: Add firmware ETS burst support.

Can be used to balance NIC/FCoE traffic distribution.

Cc: stable@kernel.org
Signed-off-by: NAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: NGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 bb2d52b2
...@@ -78,6 +78,7 @@ extern int ql2xiidmaenable; ...@@ -78,6 +78,7 @@ extern int ql2xiidmaenable;
extern int ql2xmaxqueues; extern int ql2xmaxqueues;
extern int ql2xmultique_tag; extern int ql2xmultique_tag;
extern int ql2xfwloadbin; extern int ql2xfwloadbin;
extern int ql2xetsenable;
extern int qla2x00_loop_reset(scsi_qla_host_t *); extern int qla2x00_loop_reset(scsi_qla_host_t *);
extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int); extern void qla2x00_abort_all_cmds(scsi_qla_host_t *, int);
......
...@@ -4892,6 +4892,15 @@ qla81xx_nvram_config(scsi_qla_host_t *vha) ...@@ -4892,6 +4892,15 @@ qla81xx_nvram_config(scsi_qla_host_t *vha)
} }
void void
qla81xx_update_fw_options(scsi_qla_host_t *ha) qla81xx_update_fw_options(scsi_qla_host_t *vha)
{ {
struct qla_hw_data *ha = vha->hw;
if (!ql2xetsenable)
return;
/* Enable ETS Burst. */
memset(ha->fw_options, 0, sizeof(ha->fw_options));
ha->fw_options[2] |= BIT_9;
qla2x00_set_fw_options(vha, ha->fw_options);
} }
...@@ -107,6 +107,12 @@ MODULE_PARM_DESC(ql2xfwloadbin, ...@@ -107,6 +107,12 @@ MODULE_PARM_DESC(ql2xfwloadbin,
" 1 -- load firmware from flash.\n" " 1 -- load firmware from flash.\n"
" 0 -- use default semantics.\n"); " 0 -- use default semantics.\n");
int ql2xetsenable;
module_param(ql2xetsenable, int, S_IRUGO|S_IRUSR);
MODULE_PARM_DESC(ql2xetsenable,
"Enables firmware ETS burst."
"Default is 0 - skip ETS enablement.");
/* /*
* SCSI host template entry points * SCSI host template entry points
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册