{\r
WV_QP_CREATE create;\r
WV_QP_ATTRIBUTES attr;\r
- //WV_DEVICE_ADDRESS *addr;\r
DWORD opts;\r
HRESULT hr;\r
\r
create.SendSge = maxInitiatorRequestSGE;\r
create.ReceiveDepth = receiveQueueDepth;\r
create.ReceiveSge = maxReceiveRequestSGE;\r
- //create.InitiatorDepth = ???;\r
- //create.ResponderResources = ???;\r
create.MaxInlineSend = m_pAdapter->m_MaxInlineSend;\r
create.QpType = WvQpTypeRc;\r
\r
\r
opts = WV_QP_ATTR_STATE | WV_QP_ATTR_PORT_NUMBER | WV_QP_ATTR_PKEY_INDEX;\r
attr.QpState = WvQpStateInit;\r
- //??? need pkey and port for adapter\r
- //addr = &m_pAdapter->m_DevAddress;\r
- //attr.AddressVector.PortNumber = addr->PortNumber;\r
- //hr = m_pConnector->m_pAdapter->m_pWvDevice->FindPkey(addr->PortNumber, addr->Pkey,\r
- // &attr.PkeyIndex);\r
- if (FAILED(hr)) {\r
- return NDConvertWVStatus(hr);\r
- }\r
+ attr.PkeyIndex = 0;\r
+ attr.AddressVector.PortNumber = 1;\r
\r
hr = m_pWvQp->Modify(&attr, opts, NULL);\r
if (FAILED(hr)) {\r