[ofw] [PATCH 9/12] nd2: set initial QP attributes for pkey and port
Hefty, Sean
sean.hefty at intel.com
Tue Jul 27 00:53:27 PDT 2010
Assign default values for the pkey and port. These can
change during later QP transitions if needed.
Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
trunk/ulp/netdirect2/user/nd_qp.cpp | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/trunk/ulp/netdirect2/user/nd_qp.cpp b/trunk/ulp/netdirect2/user/nd_qp.cpp
index c30579f..4a74246 100644
--- a/trunk/ulp/netdirect2/user/nd_qp.cpp
+++ b/trunk/ulp/netdirect2/user/nd_qp.cpp
@@ -53,7 +53,6 @@ Init(CNDCompletionQueue* pReceiveCompletionQueue,
{
WV_QP_CREATE create;
WV_QP_ATTRIBUTES attr;
- //WV_DEVICE_ADDRESS *addr;
DWORD opts;
HRESULT hr;
@@ -74,8 +73,6 @@ Init(CNDCompletionQueue* pReceiveCompletionQueue,
create.SendSge = maxInitiatorRequestSGE;
create.ReceiveDepth = receiveQueueDepth;
create.ReceiveSge = maxReceiveRequestSGE;
- //create.InitiatorDepth = ???;
- //create.ResponderResources = ???;
create.MaxInlineSend = m_pAdapter->m_MaxInlineSend;
create.QpType = WvQpTypeRc;
@@ -86,14 +83,8 @@ Init(CNDCompletionQueue* pReceiveCompletionQueue,
opts = WV_QP_ATTR_STATE | WV_QP_ATTR_PORT_NUMBER | WV_QP_ATTR_PKEY_INDEX;
attr.QpState = WvQpStateInit;
- //??? need pkey and port for adapter
- //addr = &m_pAdapter->m_DevAddress;
- //attr.AddressVector.PortNumber = addr->PortNumber;
- //hr = m_pConnector->m_pAdapter->m_pWvDevice->FindPkey(addr->PortNumber, addr->Pkey,
- // &attr.PkeyIndex);
- if (FAILED(hr)) {
- return NDConvertWVStatus(hr);
- }
+ attr.PkeyIndex = 0;
+ attr.AddressVector.PortNumber = 1;
hr = m_pWvQp->Modify(&attr, opts, NULL);
if (FAILED(hr)) {
More information about the ofw
mailing list