return hr;\r
}\r
\r
+ pInfo->VendorId = pAttr->vend_id;\r
+ pInfo->DeviceId = pAttr->dev_id;\r
pInfo->MaxInboundSge = pAttr->max_sges;\r
pInfo->MaxInboundRequests = pAttr->max_wrs;\r
- pInfo->MaxInboundLength = INT_MAX;\r
+ pInfo->MaxInboundLength = (SIZE_T)pAttr->p_port_attr[m_PortNum - 1].max_msg_size;\r
pInfo->MaxOutboundSge = pAttr->max_sges;\r
pInfo->MaxOutboundRequests = pAttr->max_wrs;\r
- pInfo->MaxOutboundLength = INT_MAX;\r
+ pInfo->MaxOutboundLength = (SIZE_T)pAttr->p_port_attr[m_PortNum - 1].max_msg_size;\r
pInfo->MaxInboundReadLimit = pAttr->max_qp_resp_res;\r
pInfo->MaxOutboundReadLimit = pAttr->max_qp_init_depth;\r
pInfo->MaxCqEntries = pAttr->max_cqes;\r