Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2017 04:48:09 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318774 - head/sys/dev/cxgbe/iw_cxgbe
Message-ID:  <201705240448.v4O4m9Mr011000@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed May 24 04:48:09 2017
New Revision: 318774
URL: https://svnweb.freebsd.org/changeset/base/318774

Log:
  cxgbe/iw_cxgbe: sodisconnect failures are harmless and should not be
  treated as fatal errors.
  
  MFC after:	3 days
  Sponsored by:	Chelsio Communications

Modified:
  head/sys/dev/cxgbe/iw_cxgbe/cm.c

Modified: head/sys/dev/cxgbe/iw_cxgbe/cm.c
==============================================================================
--- head/sys/dev/cxgbe/iw_cxgbe/cm.c	Wed May 24 04:42:31 2017	(r318773)
+++ head/sys/dev/cxgbe/iw_cxgbe/cm.c	Wed May 24 04:48:09 2017	(r318774)
@@ -2376,6 +2376,8 @@ int c4iw_ep_disconnect(struct c4iw_ep *e
 			set_bit(EP_DISC_ABORT, &ep->com.history);
 			close_complete_upcall(ep, -ECONNRESET);
 			ret = send_abort(ep);
+			if (ret)
+				fatal = 1;
 		} else {
 
 			CTR2(KTR_IW_CXGBE, "%s:ced5 %p", __func__, ep);
@@ -2383,13 +2385,9 @@ int c4iw_ep_disconnect(struct c4iw_ep *e
 
 			if (!ep->parent_ep)
 				__state_set(&ep->com, MORIBUND);
-			ret = sodisconnect(ep->com.so);
+			sodisconnect(ep->com.so);
 		}
 
-		if (ret) {
-
-			fatal = 1;
-		}
 	}
 
 	if (fatal) {



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