Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10703
b: refs/heads/master
c: e23d6d2
h: refs/heads/master
i:
  10701: a27059a
  10699: d298c3b
  10695: 82af45b
  10687: bd9089e
v: v3
  • Loading branch information
Roland Dreier committed Oct 17, 2005
1 parent 7a3601d commit 58a5efc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90f104da22bbf2e2b8a2136c12fb4e013fccf504
refs/heads/master: e23d6d2b090658007732770720a44375cba23200
15 changes: 15 additions & 0 deletions trunk/drivers/infiniband/hw/mthca/mthca_srq.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,14 @@ int mthca_tavor_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,

wqe = get_wqe(srq, ind);
next_ind = *wqe_to_link(wqe);

if (next_ind < 0) {
mthca_err(dev, "SRQ %06x full\n", srq->srqn);
err = -ENOMEM;
*bad_wr = wr;
break;
}

prev_wqe = srq->last;
srq->last = wqe;

Expand Down Expand Up @@ -529,6 +537,13 @@ int mthca_arbel_post_srq_recv(struct ib_srq *ibsrq, struct ib_recv_wr *wr,
wqe = get_wqe(srq, ind);
next_ind = *wqe_to_link(wqe);

if (next_ind < 0) {
mthca_err(dev, "SRQ %06x full\n", srq->srqn);
err = -ENOMEM;
*bad_wr = wr;
break;
}

((struct mthca_next_seg *) wqe)->nda_op =
cpu_to_be32((next_ind << srq->wqe_shift) | 1);
((struct mthca_next_seg *) wqe)->ee_nds = 0;
Expand Down

0 comments on commit 58a5efc

Please sign in to comment.