[openib-general] [PATCH 3 of 53] ipath - report max MR and QP sizes based on table sizes
Bryan O'Sullivan
bos at pathscale.com
Fri May 12 16:42:48 PDT 2006
Report max MR based on the lkey table size.
Report max QP based on the QP table size.
Signed-off-by: Bryan O'Sullivan <bos at pathscale.com>
diff -r 3ab7a7b10bf2 -r 5d5e1e641b16 drivers/infiniband/hw/ipath/ipath_verbs.c
--- a/drivers/infiniband/hw/ipath/ipath_verbs.c Fri May 12 15:55:27 2006 -0700
+++ b/drivers/infiniband/hw/ipath/ipath_verbs.c Fri May 12 15:55:27 2006 -0700
@@ -583,12 +583,12 @@ static int ipath_query_device(struct ib_
props->sys_image_guid = dev->sys_image_guid;
props->max_mr_size = ~0ull;
- props->max_qp = 0xffff;
+ props->max_qp = dev->qp_table.max;
props->max_qp_wr = 0xffff;
props->max_sge = 255;
props->max_cq = 0xffff;
props->max_cqe = 0xffff;
- props->max_mr = 0xffff;
+ props->max_mr = dev->lk_table.max;
props->max_pd = 0xffff;
props->max_qp_rd_atom = 1;
props->max_qp_init_rd_atom = 1;
More information about the general
mailing list