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

Sorry...

STeve.


On Wed, 2006-04-05 at 09:01 -0500, Steve Wise wrote:
> 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 <[EMAIL PROTECTED]>
> 
> 
> 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,
> 
> _______________________________________________
> openib-general mailing list
> [email protected]
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to