瀏覽代碼

RDMA/cxgb3: Stop EP timer when MPA exchange is aborted by peer

Stop the endpoint timer when the MPA exchange is aborted by the peer.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Steve Wise 18 年之前
父節點
當前提交
adf376b370
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/infiniband/hw/cxgb3/iwch_cm.c

+ 2 - 0
drivers/infiniband/hw/cxgb3/iwch_cm.c

@@ -1487,8 +1487,10 @@ static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)
 	case CONNECTING:
 		break;
 	case MPA_REQ_WAIT:
+		stop_ep_timer(ep);
 		break;
 	case MPA_REQ_SENT:
+		stop_ep_timer(ep);
 		connect_reply_upcall(ep, -ECONNRESET);
 		break;
 	case MPA_REP_SENT: