[openib-general] mthca fix: update the init attributes in create_srq
Dotan Barak
dotanb at mellanox.co.il
Mon Feb 20 01:52:07 PST 2006
The init attributes are being updated with the actual SRQ values in the
mthca.
Signed-off-by: Dotan Barak <dotanb at mellanox.co.il>
Index: latest/drivers/infiniband/hw/mthca/mthca_srq.c
===================================================================
--- latest.orig/drivers/infiniband/hw/mthca/mthca_srq.c 2006-02-20
08:04:06.000000000 +0200
+++ latest/drivers/infiniband/hw/mthca/mthca_srq.c 2006-02-20
11:26:04.000000000 +0200
@@ -268,6 +268,9 @@ int mthca_alloc_srq(struct mthca_dev *de
srq->first_free = 0;
srq->last_free = srq->max - 1;
+ attr->max_wr = srq->max;
+ attr->max_sge = srq->max_gs;
+
return 0;
err_out_free_srq:
Dotan Barak
Software Verification Engineer
Mellanox Technologies
Tel: +972-4-9097200 Ext: 231 Fax: +972-4-9593245
P.O. Box 86 Yokneam 20692 ISRAEL.
Home: +972-77-8841095 Cell: 052-4222383
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20060220/65a2db0f/attachment.html>
More information about the general
mailing list