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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"