[openib-general] [PATCH] [MTHCA] - set max_sge_rd attribute

Steve Wise swise at opengridcomputing.com
Wed Apr 5 07:19:34 PDT 2006


While testing the cxgb3 iwarp driver, I noticed that mthca is not
setting the max_sge_rd attribute.  Dunno if the limits.max_sg is the
correct value, but it seemed like the only reasonable one...

Signed-off-by: Steve Wise <swise at opengridcomputing.com>
 

Index: mthca_provider.c
===================================================================
--- mthca_provider.c	(revision 6243)
+++ mthca_provider.c	(working copy)
@@ -97,6 +97,7 @@
 	props->max_qp              = mdev->limits.num_qps - mdev->limits.reserved_qps;
 	props->max_qp_wr           = mdev->limits.max_wqes;
 	props->max_sge             = mdev->limits.max_sg;
+	props->max_sge_rd	   = mdev->limits.max_sg;
 	props->max_cq              = mdev->limits.num_cqs - mdev->limits.reserved_cqs;
 	props->max_cqe             = mdev->limits.max_cqes;
 	props->max_mr              = mdev->limits.num_mpts - mdev->limits.reserved_mrws;




More information about the general mailing list