Revision: 2736 Author: stansmith Date: 12:15:30 PM, Thursday, March 11, 2010 Message: [ND/IBAL] ND provider INDAdaper::Query busted. The INDAdapter::Query implementation doesn't set the maximum transfer lengths properly. This patch fixes this, and allows MSMPI to chunk large transfers properly.
Signed-off-by: Fab Tillier <[email protected]> ---- Modified : /gen1/branches/WOF2-2/ulp/nd/user/NdAdapter.cpp --- a/ulp/nd/user/NdAdapter.cpp Thu Mar 18 12:26:35 2010 +++ b/ulp/nd/user/NdAdapter.cpp Thu Mar 18 12:21:25 2010 @@ -256,12 +256,14 @@ return hr; } + pInfo->VendorId = pAttr->vend_id; + pInfo->DeviceId = pAttr->dev_id; pInfo->MaxInboundSge = pAttr->max_sges; pInfo->MaxInboundRequests = pAttr->max_wrs; - pInfo->MaxInboundLength = INT_MAX; + pInfo->MaxInboundLength = (SIZE_T)pAttr->p_port_attr[m_PortNum - 1].max_msg_size; pInfo->MaxOutboundSge = pAttr->max_sges; pInfo->MaxOutboundRequests = pAttr->max_wrs; - pInfo->MaxOutboundLength = INT_MAX; + pInfo->MaxOutboundLength = (SIZE_T)pAttr->p_port_attr[m_PortNum - 1].max_msg_size; pInfo->MaxInboundReadLimit = pAttr->max_qp_resp_res; pInfo->MaxOutboundReadLimit = pAttr->max_qp_init_depth; pInfo->MaxCqEntries = pAttr->max_cqes; _______________________________________________ ofw mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
