]> git.openfabrics.org - ~shefty/rdma-win.git/commit
[WINVERBS] winverbs/ep: allow failed connection requests to be retried
authorStan Smith <stan.smith@intel.com>
Wed, 10 Mar 2010 22:19:37 +0000 (22:19 +0000)
committerStan Smith <stan.smith@intel.com>
Wed, 10 Mar 2010 22:19:37 +0000 (22:19 +0000)
commitd266ca5e81e4e4f265b8d23c43a166edc7df7109
treedc3098c952610cac8dfecd9f080b7086085b3a4d
parent1ca5ee7f970a2f5e256e68d0993967bd3cd3fe67
[WINVERBS] winverbs/ep: allow failed connection requests to be retried
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.

winverbs: allow WV:Disconnect() to be retried

ND for some odd reason wants a successful return code for
a failed disconnect call.  If a Disconnect() call fails,
allow it to be retried.  Return STATUS_TIMEOUT - a 'successful'
failure, rather than STATUS_IO_TIMEOUT, which is a 'failed' failure.
(I love Windows, really, I do.)  A subsequent call to EP:
Disconnect() after a timeout will force the QP into the error
state and force the EP into the disconnected state.

This change is needed to prevent ndping and other ND tests from
reporting a failure.  They only allow disconnect calls to fail
'successfully' with STATUS_TIMEOUT.  With the status mapping
removed from the user space WV ND library, we need to return the
desired value directly from the kernel.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2728 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
branches/WOF2-2/core/winverbs/kernel/wv_ep.c