Commit 4da26e16 authored by Chad Dupuis's avatar Chad Dupuis Committed by James Bottomley

[SCSI] qla2xxx: Add module parameter to enable/disable GFF_ID device type check.

Add the module parameter ql2xgffidenable to disable/enable the use of the
GFF_ID name server command to prevent non FCP SCSI devices from being added to
the driver's internal fc_port database.
Signed-off-by: default avatarChad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: default avatarMadhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 1e6d0670
...@@ -92,6 +92,7 @@ extern int ql2xshiftctondsd; ...@@ -92,6 +92,7 @@ extern int ql2xshiftctondsd;
extern int ql2xdbwr; extern int ql2xdbwr;
extern int ql2xdontresethba; extern int ql2xdontresethba;
extern int ql2xasynctmfenable; extern int ql2xasynctmfenable;
extern int ql2xgffidenable;
extern int ql2xenabledif; extern int ql2xenabledif;
extern int ql2xenablehba_err_chk; extern int ql2xenablehba_err_chk;
extern int ql2xtargetreset; extern int ql2xtargetreset;
......
...@@ -3284,8 +3284,9 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha, ...@@ -3284,8 +3284,9 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha,
continue; continue;
/* Bypass ports whose FCP-4 type is not FCP_SCSI */ /* Bypass ports whose FCP-4 type is not FCP_SCSI */
if (new_fcport->fc4_type != FC4_TYPE_FCP_SCSI && if (ql2xgffidenable &&
new_fcport->fc4_type != FC4_TYPE_UNKNOWN) (new_fcport->fc4_type != FC4_TYPE_FCP_SCSI &&
new_fcport->fc4_type != FC4_TYPE_UNKNOWN))
continue; continue;
/* Locate matching device in database. */ /* Locate matching device in database. */
......
...@@ -160,6 +160,11 @@ MODULE_PARM_DESC(ql2xtargetreset, ...@@ -160,6 +160,11 @@ MODULE_PARM_DESC(ql2xtargetreset,
"Enable target reset." "Enable target reset."
"Default is 1 - use hw defaults."); "Default is 1 - use hw defaults.");
int ql2xgffidenable;
module_param(ql2xgffidenable, int, S_IRUGO|S_IRUSR);
MODULE_PARM_DESC(ql2xgffidenable,
"Enables GFF_ID checks of port type. "
"Default is 0 - Do not use GFF_ID information.");
int ql2xasynctmfenable; int ql2xasynctmfenable;
module_param(ql2xasynctmfenable, int, S_IRUGO|S_IRUSR); module_param(ql2xasynctmfenable, int, S_IRUGO|S_IRUSR);
......
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