diff options
author | Dotan Barak <dotanb@mellanox.co.il> | 2006-02-23 15:13:51 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-03-20 13:08:16 -0500 |
commit | abb6e9ba17eb133ab385d0f9017fa8afa809d52a (patch) | |
tree | 6cab0a44a1cb439c3c204149d44e6295320e5de7 /drivers/infiniband | |
parent | 44af79f9524c29d6850591cc972f2667a27234d4 (diff) |
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')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_srq.c | 3 |
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, | |||
271 | srq->first_free = 0; | 271 | srq->first_free = 0; |
272 | srq->last_free = srq->max - 1; | 272 | srq->last_free = srq->max - 1; |
273 | 273 | ||
274 | attr->max_wr = srq->max; | ||
275 | attr->max_sge = srq->max_gs; | ||
276 | |||
274 | return 0; | 277 | return 0; |
275 | 278 | ||
276 | err_out_free_srq: | 279 | err_out_free_srq: |