Allow consumer to modify attributes via dat_ep_modify in init state.

Signed-off-by: Arlin Davis <[email protected]>
---
 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



_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to