qla2x00t-32gbit: Change the default qlini_mode to exclusive

By default the qlini_mode module parameter set initiator mode to 'enabled'.
This forces a SCST user to perform additional steps to activate the target mode.

Thus, change the default qlini_mode to simplify target mode usage, since
the SCST qla2xxx_scst module is usually only used with it.
This commit is contained in:
Gleb Chesnokov
2022-05-22 18:48:06 +03:00
parent 679ca7c14e
commit 80958ae4ef

View File

@@ -47,17 +47,17 @@ module_param(ql2xtgt_tape_enable, int, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(ql2xtgt_tape_enable,
"Enables Sequence level error recovery (aka FC Tape). Default is 0 - no SLER. 1 - Enable SLER.");
static char *qlini_mode = QLA2XXX_INI_MODE_STR_ENABLED;
static char *qlini_mode = QLA2XXX_INI_MODE_STR_EXCLUSIVE;
module_param(qlini_mode, charp, S_IRUGO);
MODULE_PARM_DESC(qlini_mode,
"Determines when initiator mode will be enabled. Possible values: "
"\"exclusive\" - initiator mode will be enabled on load, "
"\"exclusive\" (default) - initiator mode will be enabled on load, "
"disabled on enabling target mode and then on disabling target mode "
"enabled back; "
"\"disabled\" - initiator mode will never be enabled; "
"\"dual\" - Initiator Modes will be enabled. Target Mode can be activated "
"when ready "
"\"enabled\" (default) - initiator mode will always stay enabled.");
"when ready; "
"\"enabled\" - initiator mode will always stay enabled.");
static int ql_dm_tgt_ex_pct = 0;
module_param(ql_dm_tgt_ex_pct, int, S_IRUGO|S_IWUSR);