Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39210
b: refs/heads/master
c: 2cbe19d
h: refs/heads/master
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Roland Dreier committed Oct 10, 2006
1 parent 54c5510 commit 73a28e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73fbe8be73512b8a3ffa3d20c9d7f531af99679c
refs/heads/master: 2cbe19d48af198f0070470a2d836828de24fe163
6 changes: 4 additions & 2 deletions trunk/drivers/infiniband/hw/mthca/mthca_srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd,

if (mthca_is_memfree(dev))
srq->max = roundup_pow_of_two(srq->max + 1);
else
srq->max = srq->max + 1;

ds = max(64UL,
roundup_pow_of_two(sizeof (struct mthca_next_seg) +
Expand Down Expand Up @@ -277,7 +279,7 @@ 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 = (mthca_is_memfree(dev)) ? srq->max - 1 : srq->max;
attr->max_wr = srq->max - 1;
attr->max_sge = srq->max_gs;

return 0;
Expand Down Expand Up @@ -413,7 +415,7 @@ int mthca_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *srq_attr)
srq_attr->srq_limit = be16_to_cpu(tavor_ctx->limit_watermark);
}

srq_attr->max_wr = (mthca_is_memfree(dev)) ? srq->max - 1 : srq->max;
srq_attr->max_wr = srq->max - 1;
srq_attr->max_sge = srq->max_gs;

out:
Expand Down

0 comments on commit 73a28e4

Please sign in to comment.