]> git.openfabrics.org - ~shefty/rdma-win.git/commit
ibat/resolve: retry ibat resolution
authorSean Hefty <sean.hefty@intel.com>
Thu, 18 Feb 2010 21:51:19 +0000 (21:51 +0000)
committerSean Hefty <sean.hefty@intel.com>
Thu, 18 Feb 2010 21:51:19 +0000 (21:51 +0000)
commit1693da704c4277706445a9f820bcef5402ad42cb
treead6ef0f04d3bfc883c55a17ad75fc7914bbbfeb5
parent4e03e81d433bb0fdfc653c325435288c05b9ab6a
ibat/resolve: retry ibat resolution

Winverbs ND scale out testing showed that IBAT::Resolve() can
return E_PENDING, which requires that the resolution be retried.
A similar issue to this was seen when testing with the librdmacm.
Rather than duplicating retry logic in the winverbs ND provider,
add new functionality to ibat, with retry capability.  To
avoid breaking the ibat.dll interface, extend the API with a
new call ResolvePath() that takes a timeout value.

ResolvePath() automatically retries Resolve() while the result
is E_PENDING, until the request times out.  Modify the winverbs
ND provider to call ResolvePath().  Also update other places
where Resolve() is called in a loop: the librdmacm and wsd.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2703 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/core/ibat/user/ibat.cpp
trunk/inc/user/iba/ibat.h
trunk/ulp/librdmacm/src/cma.cpp
trunk/ulp/netdirect/user/nd_connect.cpp
trunk/ulp/wsd/user/ibsp_ip.c