[ofw] [PATCH 6/7] common: allow qp modify in init state

Davis, Arlin R arlin.r.davis at intel.com
Thu Jul 5 09:38:39 PDT 2012


Allow consumer to modify attributes via dat_ep_modify in init state.

Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 dapl/openib_common/qp.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dapl/openib_common/qp.c b/dapl/openib_common/qp.c
index 16ce594..a8cc56e 100644
--- a/dapl/openib_common/qp.c
+++ b/dapl/openib_common/qp.c
@@ -287,6 +287,12 @@ dapls_ib_qp_modify(IN DAPL_IA * ia_ptr,
 					      IBV_QPS_ERR, 0, 0, 0));
 	}
 
+	/* consumer ep_modify, init state */
+	if (ep_ptr->qp_handle->state == IBV_QPS_INIT) {
+		return (dapls_modify_qp_state(ep_ptr->qp_handle,
+					      IBV_QPS_INIT, 0, 0, 0));
+	}
+
 	/*
 	 * Check if we have the right qp_state to modify attributes
 	 */
-- 
1.7.3





More information about the ofw mailing list