Use resv1 field to allow for more GIDs assigned to a single node.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1417
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
}\r
\r
STDMETHODIMP CWVDevice::\r
-FindGidIndex(UINT8 PortNumber, WV_GID *pGid, UINT8 *pIndex)\r
+FindGidIndex(UINT8 PortNumber, WV_GID *pGid, UINT16 *pIndex)\r
{\r
WV_GID gid;\r
DWORD index;\r
}\r
\r
if (RtlCompareMemory(pGid, &gid, sizeof(gid)) == sizeof(gid)) {\r
- *pIndex = (UINT8) index;\r
+ *pIndex = (UINT16) index;\r
break;\r
}\r
}\r
*ppDevice = NULL;\r
return hr;\r
}\r
- STDMETHODIMP FindGidIndex(UINT8 PortNumber, WV_GID *pGid, UINT8 *pIndex);\r
+ STDMETHODIMP FindGidIndex(UINT8 PortNumber, WV_GID *pGid, UINT16 *pIndex);\r
\r
CWVProvider *m_pProvider;\r
uvp_interface_t m_Verbs;\r
pVerbsAv->grh_valid = pAv->Route.Valid;\r
if (pVerbsAv->grh_valid) {\r
hr = m_pPd->m_pDevice->FindGidIndex(pAv->PortNumber, &pAv->Route.SGid,\r
- &pVerbsAv->grh.resv2);\r
+ &pVerbsAv->grh.resv1);\r
if (FAILED(hr)) {\r
return hr;\r
}\r