diff mbox

uDAPL v2.0: common: qp modify RTR using wrong ep attribute parameter for dest_rd_atomic

Message ID E3280858FA94444CA49D2BA02341C983011F10C34E@orsmsx506.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arlin Davis Jan. 5, 2011, 1:03 a.m. UTC
None
diff mbox

Patch

diff --git a/dapl/openib_common/qp.c b/dapl/openib_common/qp.c
index 1e5b6d4..1826362 100644
--- a/dapl/openib_common/qp.c
+++ b/dapl/openib_common/qp.c
@@ -458,7 +458,7 @@  dapls_modify_qp_state(IN ib_qp_handle_t		qp_handle,
 		qp_attr.rq_psn = 1;
 		qp_attr.path_mtu = ia_ptr->hca_ptr->ib_trans.mtu;
 		qp_attr.max_dest_rd_atomic =
-			ep_ptr->param.ep_attr.max_rdma_read_out;
+			ep_ptr->param.ep_attr.max_rdma_read_in;
 		qp_attr.min_rnr_timer =
 			ia_ptr->hca_ptr->ib_trans.rnr_timer;
 
@@ -564,6 +564,16 @@  dapls_modify_qp_state(IN ib_qp_handle_t		qp_handle,
 		ep_ptr->qp_state = qp_state;
 		return DAT_SUCCESS;
 	} else {
+		dapl_log(DAPL_DBG_TYPE_ERR,
+			" RTR ERR: type %d qpn 0x%x gid %p (%d) lid 0x%x"
+			" port %d state %d mtu %d rd %d rnr %d sl %d\n",
+			qp_handle->qp_type, ntohl(qpn), gid,
+			ia_ptr->hca_ptr->ib_trans.global,
+			ntohs(lid), ia_ptr->hca_ptr->port_num,
+			ep_ptr->qp_state,
+			qp_attr.path_mtu, qp_attr.max_dest_rd_atomic,
+			qp_attr.min_rnr_timer, qp_attr.ah_attr.sl);
+
 		return (dapl_convert_errno(errno, "modify_qp_state"));
 	}
 }