[openib-general] [PATCH] uDAPL cma provider - add missing ia_attributes for the ia_query

Arlin Davis arlin.r.davis at intel.com
Tue Jun 13 17:03:40 PDT 2006


James,

Here are some changes to include some missing IA attributes during a query.

-arlin

Signed-off by: Arlin Davis ardavis at ichips.intel.com


Index: dapl/openib_cma/dapl_ib_util.c
===================================================================
--- dapl/openib_cma/dapl_ib_util.c	(revision 7935)
+++ dapl/openib_cma/dapl_ib_util.c	(working copy)
@@ -444,7 +444,10 @@ DAT_RETURN dapls_ib_query_hca(IN DAPL_HC
 		ia_attr->hardware_version_major = dev_attr.hw_ver;
 		ia_attr->max_eps                  = dev_attr.max_qp;
 		ia_attr->max_dto_per_ep           = dev_attr.max_qp_wr;
-		ia_attr->max_rdma_read_per_ep     = dev_attr.max_qp_rd_atom;
+		ia_attr->max_rdma_read_per_ep_in  = dev_attr.max_qp_rd_atom;
+		ia_attr->max_rdma_read_per_ep_out = dev_attr.max_qp_rd_atom;
+		ia_attr->max_rdma_read_per_ep_in_guaranteed  = DAT_TRUE;
+		ia_attr->max_rdma_read_per_ep_out_guaranteed = DAT_TRUE;
 		ia_attr->max_evds                 = dev_attr.max_cq;
 		ia_attr->max_evd_qlen             = dev_attr.max_cqe;
 		ia_attr->max_iov_segments_per_dto = dev_attr.max_sge;
@@ -468,10 +471,11 @@ DAT_RETURN dapls_ib_query_hca(IN DAPL_HC
 			ia_attr->max_eps, ia_attr->max_dto_per_ep,
 			ia_attr->max_evds, ia_attr->max_evd_qlen );
 		dapl_dbg_log(DAPL_DBG_TYPE_UTIL, 
-			" query_hca: msg %llu rdma %llu iov %d lmr %d rmr %d\n", 
+			" query_hca: msg %llu rdma %llu iov %d lmr %d rmr %d"
+			" rd_io %d\n", 
 			ia_attr->max_mtu_size, ia_attr->max_rdma_size,
 			ia_attr->max_iov_segments_per_dto, ia_attr->max_lmrs, 
-			ia_attr->max_rmrs );
+			ia_attr->max_rmrs, ia_attr->max_rdma_read_per_ep_in );
 	}
 	
 	if (ep_attr != NULL) {





More information about the general mailing list