[ofa-general] [PATCH 3/3] IB/ehca: Return srq_attr->max_sge in ehca_query_srq()
Hoang-Nam Nguyen
hnguyen at linux.vnet.ibm.com
Fri Sep 28 08:20:05 PDT 2007
From aa488c3cd5a036bbec73d92c96be7aff5030274c Mon Sep 17 00:00:00 2001
From: Joachim Fenkes <fenkes at de.ibm.com>
Date: Fri, 28 Sep 2007 15:40:04 +0200
Subject: [PATCH] IB/ehca: Return srq_attr->max_sge in ehca_query_srq()
Totally forgot this.
Signed-off-by: Joachim Fenkes <fenkes at de.ibm.com>
---
drivers/infiniband/hw/ehca/ehca_qp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/hw/ehca/ehca_qp.c b/drivers/infiniband/hw/ehca/ehca_qp.c
index 2591651..e2bd62b 100644
--- a/drivers/infiniband/hw/ehca/ehca_qp.c
+++ b/drivers/infiniband/hw/ehca/ehca_qp.c
@@ -1753,6 +1753,7 @@ int ehca_query_srq(struct ib_srq *srq, struct ib_srq_attr *srq_attr)
}
srq_attr->max_wr = qpcb->max_nr_outst_recv_wr - 1;
+ srq_attr->max_sge = qpcb->actual_nr_sges_in_rq_wqe;
srq_attr->srq_limit = EHCA_BMASK_GET(
MQPCB_CURR_SRQ_LIMIT, qpcb->curr_srq_limit);
--
1.5.2
More information about the general
mailing list