[ofw] [PATCH 10/12] nd2: implement QP flush

Hefty, Sean sean.hefty at intel.com
Tue Jul 27 00:54:12 PDT 2010


Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
 trunk/ulp/netdirect2/user/nd_qp.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/trunk/ulp/netdirect2/user/nd_qp.cpp b/trunk/ulp/netdirect2/user/nd_qp.cpp
index 4a74246..90b9567 100644
--- a/trunk/ulp/netdirect2/user/nd_qp.cpp
+++ b/trunk/ulp/netdirect2/user/nd_qp.cpp
@@ -139,8 +139,12 @@ Release(void)
 STDMETHODIMP CNDQueuePair::
 Flush(void)
 {
-	//??? Modify QP to error state
-	return ND_NOT_SUPPORTED;
+	WV_QP_ATTRIBUTES attr;
+	HRESULT hr;
+
+	attr.QpState = WvQpStateError;
+	hr = m_pWvQp->Modify(&attr, WV_QP_ATTR_STATE, NULL);
+	return NDConvertWVStatus(hr);
 }
 
 STDMETHODIMP_(DWORD) CNDQueuePair::




More information about the ofw mailing list