aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-07-08 22:59:49 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:04:22 -0400
commit604158ade0d5378622541232a007bf975c8bd03f (patch)
tree347764242e8cbfa9619c5e5e3beeb893b784a450 /drivers/scsi/bfa
parent07b2838669dc7704e02e079b1a96602656893d78 (diff)
[SCSI] bfa: add description for module parameters
Add description for bfa driver module parameters. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa')
-rw-r--r--drivers/scsi/bfa/bfad.c33
-rw-r--r--drivers/scsi/bfa/bfad_intr.c4
2 files changed, 34 insertions, 3 deletions
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c
index 37f886d27922..a17800e6277d 100644
--- a/drivers/scsi/bfa/bfad.c
+++ b/drivers/scsi/bfa/bfad.c
@@ -54,31 +54,58 @@ static int bfa_io_max_sge = BFAD_IO_MAX_SGE;
54static int log_level = BFA_LOG_WARNING; 54static int log_level = BFA_LOG_WARNING;
55static int ioc_auto_recover = BFA_TRUE; 55static int ioc_auto_recover = BFA_TRUE;
56static int ipfc_enable = BFA_FALSE; 56static int ipfc_enable = BFA_FALSE;
57static int ipfc_mtu = -1;
58static int fdmi_enable = BFA_TRUE; 57static int fdmi_enable = BFA_TRUE;
59int bfa_lun_queue_depth = BFAD_LUN_QUEUE_DEPTH; 58int bfa_lun_queue_depth = BFAD_LUN_QUEUE_DEPTH;
60int bfa_linkup_delay = -1; 59int bfa_linkup_delay = -1;
61 60
62module_param(os_name, charp, S_IRUGO | S_IWUSR); 61module_param(os_name, charp, S_IRUGO | S_IWUSR);
62MODULE_PARM_DESC(os_name, "OS name of the hba host machine");
63module_param(os_patch, charp, S_IRUGO | S_IWUSR); 63module_param(os_patch, charp, S_IRUGO | S_IWUSR);
64MODULE_PARM_DESC(os_patch, "OS patch level of the hba host machine");
64module_param(host_name, charp, S_IRUGO | S_IWUSR); 65module_param(host_name, charp, S_IRUGO | S_IWUSR);
66MODULE_PARM_DESC(host_name, "Hostname of the hba host machine");
65module_param(num_rports, int, S_IRUGO | S_IWUSR); 67module_param(num_rports, int, S_IRUGO | S_IWUSR);
68MODULE_PARM_DESC(num_rports, "Max number of rports supported per port"
69 " (physical/logical), default=1024");
66module_param(num_ios, int, S_IRUGO | S_IWUSR); 70module_param(num_ios, int, S_IRUGO | S_IWUSR);
71MODULE_PARM_DESC(num_ios, "Max number of ioim requests, default=2000");
67module_param(num_tms, int, S_IRUGO | S_IWUSR); 72module_param(num_tms, int, S_IRUGO | S_IWUSR);
73MODULE_PARM_DESC(num_tms, "Max number of task im requests, default=128");
68module_param(num_fcxps, int, S_IRUGO | S_IWUSR); 74module_param(num_fcxps, int, S_IRUGO | S_IWUSR);
75MODULE_PARM_DESC(num_fcxps, "Max number of fcxp requests, default=64");
69module_param(num_ufbufs, int, S_IRUGO | S_IWUSR); 76module_param(num_ufbufs, int, S_IRUGO | S_IWUSR);
77MODULE_PARM_DESC(num_ufbufs, "Max number of unsolicited frame buffers,"
78 " default=64");
70module_param(reqq_size, int, S_IRUGO | S_IWUSR); 79module_param(reqq_size, int, S_IRUGO | S_IWUSR);
80MODULE_PARM_DESC(reqq_size, "Max number of request queue elements,"
81 " default=256");
71module_param(rspq_size, int, S_IRUGO | S_IWUSR); 82module_param(rspq_size, int, S_IRUGO | S_IWUSR);
83MODULE_PARM_DESC(rspq_size, "Max number of response queue elements,"
84 " default=64");
72module_param(num_sgpgs, int, S_IRUGO | S_IWUSR); 85module_param(num_sgpgs, int, S_IRUGO | S_IWUSR);
86MODULE_PARM_DESC(num_sgpgs, "Number of scatter/gather pages, default=2048");
73module_param(rport_del_timeout, int, S_IRUGO | S_IWUSR); 87module_param(rport_del_timeout, int, S_IRUGO | S_IWUSR);
88MODULE_PARM_DESC(rport_del_timeout, "Rport delete timeout, default=90 secs,"
89 " Range[>0]");
74module_param(bfa_lun_queue_depth, int, S_IRUGO | S_IWUSR); 90module_param(bfa_lun_queue_depth, int, S_IRUGO | S_IWUSR);
91MODULE_PARM_DESC(bfa_lun_queue_depth, "Lun queue depth, default=32,"
92 " Range[>0]");
75module_param(bfa_io_max_sge, int, S_IRUGO | S_IWUSR); 93module_param(bfa_io_max_sge, int, S_IRUGO | S_IWUSR);
94MODULE_PARM_DESC(bfa_io_max_sge, "Max io scatter/gather elements, default=255");
76module_param(log_level, int, S_IRUGO | S_IWUSR); 95module_param(log_level, int, S_IRUGO | S_IWUSR);
96MODULE_PARM_DESC(log_level, "Driver log level, default=3,"
97 " Range[Critical:1|Error:2|Warning:3|Info:4]");
77module_param(ioc_auto_recover, int, S_IRUGO | S_IWUSR); 98module_param(ioc_auto_recover, int, S_IRUGO | S_IWUSR);
99MODULE_PARM_DESC(ioc_auto_recover, "IOC auto recovery, default=1,"
100 " Range[off:0|on:1]");
78module_param(ipfc_enable, int, S_IRUGO | S_IWUSR); 101module_param(ipfc_enable, int, S_IRUGO | S_IWUSR);
79module_param(ipfc_mtu, int, S_IRUGO | S_IWUSR); 102MODULE_PARM_DESC(ipfc_enable, "Enable IPoFC, default=0, Range[off:0|on:1]");
80module_param(fdmi_enable, int, S_IRUGO | S_IWUSR);
81module_param(bfa_linkup_delay, int, S_IRUGO | S_IWUSR); 103module_param(bfa_linkup_delay, int, S_IRUGO | S_IWUSR);
104MODULE_PARM_DESC(bfa_linkup_delay, "Link up delay, default=30 secs for boot"
105 " port. Otherwise Range[>0]");
106module_param(fdmi_enable, int, S_IRUGO | S_IWUSR);
107MODULE_PARM_DESC(fdmi_enable, "Enables fdmi registration, default=1,"
108 " Range[false:0|true:1]");
82 109
83/* 110/*
84 * Stores the module parm num_sgpgs value; 111 * Stores the module parm num_sgpgs value;
diff --git a/drivers/scsi/bfa/bfad_intr.c b/drivers/scsi/bfa/bfad_intr.c
index fed27d163655..56a351584f0c 100644
--- a/drivers/scsi/bfa/bfad_intr.c
+++ b/drivers/scsi/bfa/bfad_intr.c
@@ -26,7 +26,11 @@ BFA_TRC_FILE(LDRV, INTR);
26static int msix_disable_cb; 26static int msix_disable_cb;
27static int msix_disable_ct; 27static int msix_disable_ct;
28module_param(msix_disable_cb, int, S_IRUGO | S_IWUSR); 28module_param(msix_disable_cb, int, S_IRUGO | S_IWUSR);
29MODULE_PARM_DESC(msix_disable_cb, "Disable MSIX for Brocade-415/425/815/825"
30 " cards, default=0, Range[false:0|true:1]");
29module_param(msix_disable_ct, int, S_IRUGO | S_IWUSR); 31module_param(msix_disable_ct, int, S_IRUGO | S_IWUSR);
32MODULE_PARM_DESC(msix_disable_ct, "Disable MSIX for Brocade-1010/1020/804"
33 " cards, default=0, Range[false:0|true:1]");
30/** 34/**
31 * Line based interrupt handler. 35 * Line based interrupt handler.
32 */ 36 */