[ofw] [PATCH] dapl-2.0: common: add some debug prints to help isolate QP type issues

Davis, Arlin R arlin.r.davis at intel.com
Wed May 19 10:05:12 PDT 2010


 

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

diff --git a/dapl/openib_common/qp.c b/dapl/openib_common/qp.c
index 15c1dae..473604b 100644
--- a/dapl/openib_common/qp.c
+++ b/dapl/openib_common/qp.c
@@ -182,8 +182,8 @@ dapls_ib_qp_alloc(IN DAPL_IA * ia_ptr,
 	}
 #endif
 	dapl_dbg_log(DAPL_DBG_TYPE_EP,
-		     " qp_alloc: qpn %p sq %d,%d rq %d,%d\n",
-		     ep_ptr->qp_handle->qp_num,
+		     " qp_alloc: qpn %p type %d sq %d,%d rq %d,%d\n",
+		     ep_ptr->qp_handle->qp_num, ep_ptr->qp_handle->qp_type,
 		     qp_create.cap.max_send_wr, qp_create.cap.max_send_sge,
 		     qp_create.cap.max_recv_wr, qp_create.cap.max_recv_sge);
 
@@ -561,8 +561,11 @@ dapls_create_ah(IN DAPL_HCA		*hca,
 	struct ibv_qp_attr qp_attr;
 	ib_ah_handle_t	ah;
 
-	if (qp->qp_type != IBV_QPT_UD)
+	if (qp->qp_type != IBV_QPT_UD) {
+		dapl_log(DAPL_DBG_TYPE_ERR, 
+			 " create_ah ERR: QP_type != UD\n");
 		return NULL;
+	}
 
 	dapl_os_memzero((void *)&qp_attr, sizeof(qp_attr));
 	qp_attr.qp_state = IBV_QP_STATE;
-- 
1.5.2.5




More information about the ofw mailing list