const ND_MW_DESCRIPTOR* pRemoteMwDescriptor, ULONGLONG Offset, DWORD Flags)\r
{\r
WV_SGE sgl[ND_MAX_SGE];\r
+ UINT64 addr;\r
DWORD opts;\r
HRESULT hr;\r
\r
pResult->BytesTransferred = ConvertSgl(pSgl, nSge, sgl);\r
opts = ConvertSendFlags(Flags) | (pSgl[0].hMr ? 0 : WV_SEND_INLINE);\r
+ addr = ntohll(pRemoteMwDescriptor->Base) + Offset;\r
hr = m_pWvQp->Read((UINT64) pResult, sgl, nSge, opts,\r
- pRemoteMwDescriptor->Base + htonll(Offset),\r
- pRemoteMwDescriptor->Token);\r
+ htonll(addr), pRemoteMwDescriptor->Token);\r
return NDConvertWVStatus(hr);\r
}\r
\r
const ND_MW_DESCRIPTOR* pRemoteMwDescriptor, ULONGLONG Offset, DWORD Flags)\r
{\r
WV_SGE sgl[ND_MAX_SGE];\r
+ UINT64 addr;\r
DWORD opts;\r
HRESULT hr;\r
\r
pResult->BytesTransferred = ConvertSgl(pSgl, nSge, sgl);\r
opts = ConvertSendFlags(Flags) | (pSgl && pSgl[0].hMr ? 0 : WV_SEND_INLINE);\r
+ addr = ntohll(pRemoteMwDescriptor->Base) + Offset;\r
hr = m_pWvQp->Write((UINT64) pResult, sgl, nSge, opts, 0,\r
- pRemoteMwDescriptor->Base + htonll(Offset),\r
- pRemoteMwDescriptor->Token);\r
+ htonll(addr), pRemoteMwDescriptor->Token);\r
return NDConvertWVStatus(hr);\r
}\r