Davis, Arlin R
2012-07-05 16:38:39 UTC
Allow consumer to modify attributes via dat_ep_modify in init state.
Signed-off-by: Arlin Davis <***@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 attrib
Signed-off-by: Arlin Davis <***@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 attrib