diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2017-05-24 04:48:09 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2017-05-24 04:48:09 +0000 |
commit | 27bdfd5a8a63488364453d873673630948bc5a41 (patch) | |
tree | f75b5f48f3ffd13ef0ef1c162534285c4672c60a | |
parent | 7e9a9bd4a08d8835f59f2504f28da87bae900b95 (diff) | |
download | src-27bdfd5a8a63488364453d873673630948bc5a41.tar.gz src-27bdfd5a8a63488364453d873673630948bc5a41.zip |
cxgbe/iw_cxgbe: sodisconnect failures are harmless and should not be
treated as fatal errors.
MFC after: 3 days
Sponsored by: Chelsio Communications
Notes
Notes:
svn path=/head/; revision=318774
-rw-r--r-- | sys/dev/cxgbe/iw_cxgbe/cm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/cxgbe/iw_cxgbe/cm.c b/sys/dev/cxgbe/iw_cxgbe/cm.c index b8ad6441d543..da207843c9d5 100644 --- a/sys/dev/cxgbe/iw_cxgbe/cm.c +++ b/sys/dev/cxgbe/iw_cxgbe/cm.c @@ -2376,6 +2376,8 @@ int c4iw_ep_disconnect(struct c4iw_ep *ep, int abrupt, gfp_t gfp) 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 *ep, int abrupt, gfp_t gfp) if (!ep->parent_ep) __state_set(&ep->com, MORIBUND); - ret = sodisconnect(ep->com.so); + sodisconnect(ep->com.so); } - if (ret) { - - fatal = 1; - } } if (fatal) { |