summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorDotan Barak <dotanb@mellanox.co.il>2006-02-23 21:13:51 +0100
committerRoland Dreier <rolandd@cisco.com>2006-03-20 19:08:16 +0100
commitabb6e9ba17eb133ab385d0f9017fa8afa809d52a (patch)
tree6cab0a44a1cb439c3c204149d44e6295320e5de7 /drivers/infiniband/hw
parentIPoIB: clarify to_ipoib_neigh() (diff)
downloadlinux-abb6e9ba17eb133ab385d0f9017fa8afa809d52a.tar.xz
linux-abb6e9ba17eb133ab385d0f9017fa8afa809d52a.zip
IB/mthca: Return actual capacity from create_srq
Have mthca's create_srq method return the actual capacity of the SRQ that gets created. Also update comments in <rdma/ib_verbs.h> to clarify that this is what is expected from ib_create_srq(). Signed-off-by: Dotan Barak <dotanb@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_srq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_srq.c b/drivers/infiniband/hw/mthca/mthca_srq.c
index deb526ce013d..209d2bae2256 100644
--- a/drivers/infiniband/hw/mthca/mthca_srq.c
+++ b/drivers/infiniband/hw/mthca/mthca_srq.c
@@ -271,6 +271,9 @@ int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd,
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: