summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authormjacob <mjacob@NetBSD.org>2000-10-16 05:15:55 +0000
committermjacob <mjacob@NetBSD.org>2000-10-16 05:15:55 +0000
commitffdbddbd796074e54dea74c97dd3acc33515aa92 (patch)
tree7f96987beb7aab35b0d84ab2d014ef47d3458acc /sys/dev/ic
parent298ec0ecd9ba7404c3f6966b5834e1cf43f35b1a (diff)
Add in commented-out hiwater measurement.
Remove egregious older bug which had us refusing to log into fabric devices unless they were NL ports. Whuff.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/isp_netbsd.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/dev/ic/isp_netbsd.c b/sys/dev/ic/isp_netbsd.c
index df1bfae8e78..b0177be2918 100644
--- a/sys/dev/ic/isp_netbsd.c
+++ b/sys/dev/ic/isp_netbsd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_netbsd.c,v 1.30 2000/08/14 07:08:12 mjacob Exp $ */
+/* $NetBSD: isp_netbsd.c,v 1.31 2000/10/16 05:15:55 mjacob Exp $ */
/*
* This driver, which is contained in NetBSD in the files:
*
@@ -315,6 +315,15 @@ ispcmd(xs)
}
result = isp_start(xs);
+#if 0
+{
+ static int na[16] = { 0 };
+ if (na[isp->isp_unit] < isp->isp_nactive) {
+ isp_prt(isp, ISP_LOGALL, "active hiwater %d", isp->isp_nactive);
+ na[isp->isp_unit] = isp->isp_nactive;
+ }
+}
+#endif
switch (result) {
case CMD_QUEUED:
result = SUCCESSFULLY_QUEUED;
@@ -751,12 +760,12 @@ isp_async(isp, cmd, arg)
(((u_int64_t)resp->snscb_portname[5]) << 16) |
(((u_int64_t)resp->snscb_portname[6]) << 8) |
(((u_int64_t)resp->snscb_portname[7]));
+
isp_prt(isp, ISP_LOGINFO,
"Fabric Device (Type 0x%x)@PortID 0x%x WWN 0x%08x%08x",
resp->snscb_port_type, portid, ((u_int32_t)(wwn >> 32)),
((u_int32_t)(wwn & 0xffffffff)));
- if (resp->snscb_port_type != 2)
- break;
+
for (target = FC_SNS_ID+1; target < MAX_FC_TARG; target++) {
lp = &fcp->portdb[target];
if (lp->port_wwn == wwn)