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";
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to