]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[WINVERBS/ND] do not convert wv_io_timeout to nd_timeout
authorStan Smith <stan.smith@intel.com>
Wed, 10 Mar 2010 22:26:01 +0000 (22:26 +0000)
committerStan Smith <stan.smith@intel.com>
Wed, 10 Mar 2010 22:26:01 +0000 (22:26 +0000)
wv_io_timeout is an error value, but nd_timeout is a
success value.  This means that an overlapped request
can be completed in error, but GetOverlappedResult can
return a success value.  Instead, if a timeout is fatal,
report the status as wv_io_timeout, but if the timeout
can be retried, then report the status as wv_timeout.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2730 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

branches/WOF2-2/ulp/netdirect/user/nd_base.cpp

index e51bc59cd30f2ee8908491cd3cc8fd34a71bdda0..5dfaf1147d6b106776e98fec5bb157db48039f79 100644 (file)
@@ -58,8 +58,6 @@ HRESULT NDConvertWVStatus(HRESULT hr)
        switch (hr) {\r
        case WV_IO_PENDING:\r
                return ND_PENDING;\r
-       case WV_IO_TIMEOUT:\r
-               return ND_TIMEOUT;\r
        default:\r
                return hr;\r
        }\r