Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2017 06:25:30 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320865 - head/sys/dev/isp
Message-ID:  <201707100625.v6A6PU4T029554@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Mon Jul 10 06:25:30 2017
New Revision: 320865
URL: https://svnweb.freebsd.org/changeset/base/320865

Log:
  "Port Type not registered" is not a real error for GIT_PT.

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

Modified: head/sys/dev/isp/isp.c
==============================================================================
--- head/sys/dev/isp/isp.c	Mon Jul 10 06:08:44 2017	(r320864)
+++ head/sys/dev/isp/isp.c	Mon Jul 10 06:25:30 2017	(r320865)
@@ -3783,7 +3783,10 @@ fail:
 		goto abort;
 	if (rs->snscb_cthdr.ct_cmd_resp != LS_ACC) {
 		int level;
-		if (rs->snscb_cthdr.ct_reason == 9 && rs->snscb_cthdr.ct_explanation == 7) {
+		/* FC-4 Type and Port Type not registered are not errors. */
+		if (rs->snscb_cthdr.ct_reason == 9 &&
+		    (rs->snscb_cthdr.ct_explanation == 0x07 ||
+		     rs->snscb_cthdr.ct_explanation == 0x0a)) {
 			level = ISP_LOG_SANCFG;
 		} else {
 			level = ISP_LOGWARN;



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