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>
This commit is contained in:
committed by
Roland Dreier
parent
44af79f952
commit
abb6e9ba17
@@ -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:
|
||||
|
Reference in New Issue
Block a user