[openib-general] [PATCH] [DAPL] - dapl doesn't set max read iov attributes
Steve Wise
swise at opengridcomputing.com
Wed Apr 5 07:01:18 PDT 2006
Set the IA attribute max_iov_segments_per_rdma_read and the EP attribute
max_rdma_read_iov based on the openib max_sge_rd device attribute.
Signed-off-by: Steve Wise <swise at opengridcomputing.com>
Index: openib_cma/dapl_ib_util.c
===================================================================
--- openib_cma/dapl_ib_util.c (revision 6229)
+++ openib_cma/dapl_ib_util.c (working copy)
@@ -442,6 +442,7 @@
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;
dapl_dbg_log(DAPL_DBG_TYPE_UTIL,
" query_hca: (ver=%x) ep %d ep_q %d evd %d evd_q %d\n",
@@ -464,6 +465,7 @@
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;
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