]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
winverbs/ep: allow failed connection requests to be retried
authorSean Hefty <sean.hefty@intel.com>
Fri, 5 Mar 2010 17:26:50 +0000 (09:26 -0800)
committerSean Hefty <sean.hefty@intel.com>
Tue, 9 Mar 2010 01:13:45 +0000 (17:13 -0800)
Allow a user to retry a connection request if it fails.  Report a
'success' timeout value, rather than an error timeout, reset the
EP state, and allow the request to be retried from user space.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
trunk/core/winverbs/kernel/wv_ep.c

index cb897d39cf98f03dae0f5922516693e0a094b8a2..e35e6e8d29802a36574fd5dfcd26a6b5d34c988f 100644 (file)
@@ -504,8 +504,8 @@ static NTSTATUS WvEpIbCmHandler(iba_cm_id *pId, iba_cm_event *pEvent)
        case iba_cm_req_error:\r
                WdfObjectAcquireLock(ep->Queue);\r
                if (ep->State == WvEpActiveConnect) {\r
-                       ep->State = WvEpDisconnected;\r
-                       WvCompleteRequests(ep->Queue, STATUS_IO_TIMEOUT);\r
+                       ep->State = WvEpRouteResolved;\r
+                       WvCompleteRequests(ep->Queue, STATUS_TIMEOUT);\r
                }\r
                WdfObjectReleaseLock(ep->Queue);\r
                break;\r