svn commit: r252580 - head/sys/dev/qlxgbe

David C Somayajulu davidcs at FreeBSD.org
Wed Jul 3 17:57:35 UTC 2013


Author: davidcs
Date: Wed Jul  3 17:57:35 2013
New Revision: 252580
URL: http://svnweb.freebsd.org/changeset/base/252580

Log:
  Port 0 needs to wait for ACK only if it issued the RESET.

Modified:
  head/sys/dev/qlxgbe/ql_os.c

Modified: head/sys/dev/qlxgbe/ql_os.c
==============================================================================
--- head/sys/dev/qlxgbe/ql_os.c	Wed Jul  3 17:47:48 2013	(r252579)
+++ head/sys/dev/qlxgbe/ql_os.c	Wed Jul  3 17:57:35 2013	(r252580)
@@ -1646,11 +1646,13 @@ qla_error_recovery(void *context, int pe
 	
 	if ((ha->pci_func & 0x1) == 0) {
 
-		if (!ha->msg_from_peer) 
+		if (!ha->msg_from_peer) {
 			qla_send_msg_to_peer(ha, QL_PEER_MSG_RESET);
 
-		while ((ha->msg_from_peer != QL_PEER_MSG_ACK)  && msecs_100--)
-			qla_mdelay(__func__, 100);
+			while ((ha->msg_from_peer != QL_PEER_MSG_ACK) &&
+				msecs_100--)
+				qla_mdelay(__func__, 100);
+		}
 
 		ha->msg_from_peer = 0;
 


More information about the svn-src-all mailing list