Treat PRLI the same as PLOGI and make a database entry for it (target mode).

Obtained from:	Ken Merry
MFC after:	One Month
This commit is contained in:
Matt Jacob 2010-05-25 16:46:29 +00:00
parent 0505cb3325
commit dad286235e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208542

View File

@ -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";