[ofa-general] [PATCH 08/28] IB/ipath -- fill in some missing FMR-related fields

Arthur Jones arthur.jones at qlogic.com
Tue Jun 19 16:41:14 PDT 2007


From: Robert Walsh <robert.walsh at qlogic.com>

In ipath_query_device(), some of the struct ib_device_attr
fields were not being initialized.

Signed-off-by: Robert Walsh <robert.walsh at qlogic.com>
---

 drivers/infiniband/hw/ipath/ipath_verbs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/ipath/ipath_verbs.c b/drivers/infiniband/hw/ipath/ipath_verbs.c
index 980b64a..04294ca 100644
--- a/drivers/infiniband/hw/ipath/ipath_verbs.c
+++ b/drivers/infiniband/hw/ipath/ipath_verbs.c
@@ -981,6 +981,8 @@ static int ipath_query_device(struct ib_device *ibdev,
 	props->max_ah = ib_ipath_max_ahs;
 	props->max_cqe = ib_ipath_max_cqes;
 	props->max_mr = dev->lk_table.max;
+	props->max_fmr = dev->lk_table.max;
+	props->max_map_per_fmr = 32767;
 	props->max_pd = ib_ipath_max_pds;
 	props->max_qp_rd_atom = IPATH_MAX_RDMA_ATOMIC;
 	props->max_qp_init_rd_atom = 255;




More information about the general mailing list