Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2010 16:46:29 +0000 (UTC)
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r208542 - head/sys/dev/isp
Message-ID:  <201005251646.o4PGkT6F079639@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjacob
Date: Tue May 25 16:46:29 2010
New Revision: 208542
URL: http://svn.freebsd.org/changeset/base/208542

Log:
  Treat PRLI the same as PLOGI and make a database entry for it (target mode).
  
  Obtained from:	Ken Merry
  MFC after:	One Month

Modified:
  head/sys/dev/isp/isp_freebsd.c

Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c	Tue May 25 15:58:31 2010	(r208541)
+++ head/sys/dev/isp/isp_freebsd.c	Tue May 25 16:46:29 2010	(r208542)
@@ -2609,7 +2609,14 @@ isp_handle_platform_notify_24xx(ispsoftc
 			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
 			}
 			isp_add_wwn_entry(isp, chan, wwn, nphdl, portid);
 			break;
-		case PRLI:
-			msg = "PRLI";
 			break;
 		case PDISC:
 			msg = "PDISC";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005251646.o4PGkT6F079639>