From: Andrew Vasquez <andrew.vasquez@qlogic.com>
To: James Bottomley <James.Bottomley@steeleye.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: PATCH [11/15] qla2xxx: Add login-retry-count override
Date: Sun, 14 Mar 2004 00:25:45 -0800 [thread overview]
Message-ID: <20040314082545.GA3458@linux.local.home> (raw)
ChangeSet
1.1667 04/03/01 15:40:41 andrew.vasquez@apc.qlogic.com +3 -0
Add a module parameter to override the NVRAM's login retry count
value.
drivers/scsi/qla2xxx/qla_gbl.h | 1 +
drivers/scsi/qla2xxx/qla_init.c | 2 ++
drivers/scsi/qla2xxx/qla_os.c | 5 +++++
3 files changed, 8 insertions(+)
ftp://ftp.qlogic.com/outgoing/linux/patches/8.x/8.00.00b11k/20_add_nvr_login_retry_cnt.patch
diff -Nru a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
--- a/drivers/scsi/qla2xxx/qla_gbl.h Fri Mar 12 17:09:07 2004
+++ b/drivers/scsi/qla2xxx/qla_gbl.h Fri Mar 12 17:09:07 2004
@@ -65,6 +65,7 @@
extern int displayConfig;
extern int ql2xplogiabsentdevice;
extern int ql2xintrdelaytimer;
+extern int ql2xloginretrycount;
extern int ConfigRequired;
diff -Nru a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
--- a/drivers/scsi/qla2xxx/qla_init.c Fri Mar 12 17:09:07 2004
+++ b/drivers/scsi/qla2xxx/qla_init.c Fri Mar 12 17:09:07 2004
@@ -1363,6 +1363,8 @@
ha->login_retry_count = ha->port_down_retry_count;
else if (ha->port_down_retry_count > (int)ha->login_retry_count)
ha->login_retry_count = ha->port_down_retry_count;
+ if (ql2xloginretrycount)
+ ha->login_retry_count = ql2xloginretrycount;
ha->binding_type = Bind;
if (ha->binding_type != BIND_BY_PORT_NAME &&
diff -Nru a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
--- a/drivers/scsi/qla2xxx/qla_os.c Fri Mar 12 17:09:07 2004
+++ b/drivers/scsi/qla2xxx/qla_os.c Fri Mar 12 17:09:07 2004
@@ -110,6 +110,11 @@
"Signal mid-layer to perform scan after driver load: 0 -- no "
"signal sent to mid-layer.");
+int ql2xloginretrycount = 0;
+module_param(ql2xloginretrycount, int, 0);
+MODULE_PARM_DESC(ql2xloginretrycount,
+ "Specify an alternate value for the NVRAM login retry count.");
+
/*
* Proc structures and functions
*/
reply other threads:[~2004-03-14 8:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040314082545.GA3458@linux.local.home \
--to=andrew.vasquez@qlogic.com \
--cc=James.Bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.