]> git.openfabrics.org - ~shefty/rdma-win.git/commit
winverbs/ND: fix calculating RDMA read/write address
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 3 Dec 2009 20:32:45 +0000 (20:32 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 3 Dec 2009 20:32:45 +0000 (20:32 +0000)
commit8ca34e5716dc6afab703f29f70292303179908bb
tree6cc7f98172fa47b216c50c6c6b5d05d17155eb20
parent0d2c60599400e5a7b11f2b2d3b16f476b697ab38
winverbs/ND: fix calculating RDMA read/write address

The RDMA address should be base + offset, in network byte order.  Rather
than trying to convert the offset into network byte order, then add that
to the base, which is already in network byte order, we need to convert
the base to host order, add the offset, then convert the results back.

This allows the winverbs ND provider to pass the ndmw test.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@2619 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/ulp/netdirect/user/nd_ep.cpp