RDMA/cxgb3: Stop EP timer when MPA exchange is aborted by peer
authorSteve Wise <swise@opengridcomputing.com>
Tue, 6 Mar 2007 20:44:01 +0000 (14:44 -0600)
committerRoland Dreier <rolandd@cisco.com>
Tue, 6 Mar 2007 20:50:49 +0000 (12:50 -0800)
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>
drivers/infiniband/hw/cxgb3/iwch_cm.c

index 869761fed59b7629e1b8abc74e37ee4d3414b3d4..3cf79ce64bd35a98e94eb560f981cafa858e3d4a 100644 (file)
@@ -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: