RDMA/iw_cxgb4: Release ep for for FPDU_MODE and MPA_REQ_RCVD in process_timeout
authorHariprasad S <hariprasad@chelsio.com>
Fri, 6 May 2016 16:48:05 +0000 (22:18 +0530)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:38:09 +0000 (19:38 -0400)
ARP failure may also happen when ep in FPDU_MODE and these failures need
to be handled by process_timeout(). process_timeout() also has to handle
case MPA_REQ_RCVD, setting abort to 1, leading to ep resource release.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c

index 6557240cc6b9dc3ac20fea899df5d51854b133f2..a972067d94cb069e9ee4d4d1ceb3944f30009f63 100644 (file)
@@ -4038,7 +4038,9 @@ static void process_timeout(struct c4iw_ep *ep)
                connect_reply_upcall(ep, -ETIMEDOUT);
                break;
        case MPA_REQ_WAIT:
+       case MPA_REQ_RCVD:
        case MPA_REP_SENT:
+       case FPDU_MODE:
                break;
        case CLOSING:
        case MORIBUND: