summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2010-05-25 16:46:29 +0000
committermjacob <mjacob@FreeBSD.org>2010-05-25 16:46:29 +0000
commit39ec1d5c95f9df0f40efe0176db67801aee2cd6f (patch)
tree926067b7a3c3a9dfb8a4fef3d7e82b2c307e169b /sys/dev/isp
parent2bcefd7b4bff3c3c2cee1c2189c1589f33c8eb5d (diff)
downloadFreeBSD-src-39ec1d5c95f9df0f40efe0176db67801aee2cd6f.zip
FreeBSD-src-39ec1d5c95f9df0f40efe0176db67801aee2cd6f.tar.gz
Treat PRLI the same as PLOGI and make a database entry for it (target mode).
Obtained from: Ken Merry MFC after: One Month
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_freebsd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index 49755f1..c678a81 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -2609,7 +2609,14 @@ isp_handle_platform_notify_24xx(ispsoftc_t *isp, in_fcentry_24xx_t *inot)
msg = "PRLO";
break;
case PLOGI:
- msg = "PLOGI";
+ case PRLI:
+ /*
+ * Treat PRLI the same as PLOGI and make a database entry for it.
+ */
+ if (inot->in_status_subcode == PLOGI)
+ msg = "PLOGI";
+ else
+ msg = "PRLI";
if (ISP_FW_NEWER_THAN(isp, 4, 0, 25)) {
ptr = (uint8_t *)inot; /* point to unswizzled entry! */
wwn = (((uint64_t) ptr[IN24XX_PLOGI_WWPN_OFF]) << 56) |
@@ -2625,8 +2632,6 @@ isp_handle_platform_notify_24xx(ispsoftc_t *isp, in_fcentry_24xx_t *inot)
}
isp_add_wwn_entry(isp, chan, wwn, nphdl, portid);
break;
- case PRLI:
- msg = "PRLI";
break;
case PDISC:
msg = "PDISC";
OpenPOWER on IntegriCloud