[openib-general] [PATCH] [DAPL] - dapl doesn't set max read

James Lentini jlentini at netapp.com
Thu Apr 6 08:23:35 PDT 2006


On Wed, 5 Apr 2006, Steve Wise wrote:

> Ignore this patch.  max_sge_rd is not the correct attribute...

You're right. I've fixed it on the trunk and 1.0 branch in revision 
6289 with this:

Index: openib_cma/dapl_ib_util.c
===================================================================
--- openib_cma/dapl_ib_util.c	(revision 6287)
+++ openib_cma/dapl_ib_util.c	(working copy)
@@ -442,7 +442,7 @@ DAT_RETURN dapls_ib_query_hca(IN DAPL_HC
 		ia_attr->transport_attr           = NULL;
 		ia_attr->num_vendor_attr          = 0;
 		ia_attr->vendor_attr              = NULL;
-		ia_attr->max_iov_segments_per_rdma_read = dev_attr.max_sge_rd;
+		ia_attr->max_iov_segments_per_rdma_read = dev_attr.max_sge;
 
 		dapl_dbg_log(DAPL_DBG_TYPE_UTIL, 
 			" query_hca: (ver=%x) ep %d ep_q %d evd %d evd_q %d\n", 
@@ -465,7 +465,7 @@ DAT_RETURN dapls_ib_query_hca(IN DAPL_HC
 		ep_attr->max_request_iov  = dev_attr.max_sge;
 		ep_attr->max_rdma_read_in = dev_attr.max_qp_rd_atom;
 		ep_attr->max_rdma_read_out= dev_attr.max_qp_rd_atom;
-		ep_attr->max_rdma_read_iov= dev_attr.max_sge_rd;
+		ep_attr->max_rdma_read_iov= dev_attr.max_sge;
 		dapl_dbg_log(DAPL_DBG_TYPE_UTIL, 
 			" query_hca: MAX msg %llu dto %d iov %d rdma i%d,o%d\n", 
 			ep_attr->max_mtu_size,



More information about the general mailing list