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)
commitf3d637aa048264c1b26b21032c864797003f33fd
tree76c5c2ae6e9d5831fe41ac6b6da070d273495797
parent68fc5f305aa24839dbb0c64322a70571bd9a5686
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/trunk@2619 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/netdirect/user/nd_ep.cpp