From patchwork Wed Jan 5 01:03:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 452541 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0513Vo7030689 for ; Wed, 5 Jan 2011 01:03:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750933Ab1AEBDa (ORCPT ); Tue, 4 Jan 2011 20:03:30 -0500 Received: from mga09.intel.com ([134.134.136.24]:51793 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750801Ab1AEBDa convert rfc822-to-8bit (ORCPT ); Tue, 4 Jan 2011 20:03:30 -0500 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 04 Jan 2011 17:03:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,275,1291622400"; d="scan'208";a="589948365" Received: from orsmsx602.amr.corp.intel.com ([10.22.226.211]) by orsmga002.jf.intel.com with ESMTP; 04 Jan 2011 17:03:29 -0800 Received: from orsmsx605.amr.corp.intel.com (10.22.226.10) by orsmsx602.amr.corp.intel.com (10.22.226.211) with Microsoft SMTP Server (TLS) id 8.2.254.0; Tue, 4 Jan 2011 17:03:29 -0800 Received: from orsmsx506.amr.corp.intel.com ([10.22.226.44]) by orsmsx605.amr.corp.intel.com ([10.22.226.10]) with mapi; Tue, 4 Jan 2011 17:03:10 -0800 From: "Davis, Arlin R" To: linux-rdma , "ofw@lists.openfabrics.org" CC: "Smith, Stan" Date: Tue, 4 Jan 2011 17:03:06 -0800 Subject: [PATCH] uDAPL v2.0: common: qp modify RTR using wrong ep attribute parameter for dest_rd_atomic Thread-Topic: [PATCH] uDAPL v2.0: common: qp modify RTR using wrong ep attribute parameter for dest_rd_atomic Thread-Index: AcusdE+crohXeEKgSjOv14WGeKEAPA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 05 Jan 2011 01:03:31 +0000 (UTC) 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")); } }