Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5091
b: refs/heads/master
c: 42b1806
h: refs/heads/master
i:
  5089: 18b6c46
  5087: ef6aa68
v: v3
  • Loading branch information
Roland Dreier committed Jul 27, 2005
1 parent 0d1b9b4 commit dbc631d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 9e566d8bd61f939b7f5d7d969f5b178571471cf9
refs/heads/master: 42b1806d5cfc93bf8c3d7fa6e9e79e4ec860c678
6 changes: 5 additions & 1 deletion trunk/drivers/infiniband/hw/mthca/mthca_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,12 @@ static int handle_error_cqe(struct mthca_dev *dev, struct mthca_cq *cq,
* If we're at the end of the WQE chain, or we've used up our
* doorbell count, free the CQE. Otherwise just update it for
* the next poll operation.
*
* This does not apply to mem-free HCAs: they don't use the
* doorbell count field, and so we should always free the CQE.
*/
if (!(new_wqe & cpu_to_be32(0x3f)) || (!cqe->db_cnt && dbd))
if (mthca_is_memfree(dev) ||
!(new_wqe & cpu_to_be32(0x3f)) || (!cqe->db_cnt && dbd))
return 0;

cqe->db_cnt = cpu_to_be16(be16_to_cpu(cqe->db_cnt) - dbd);
Expand Down

0 comments on commit dbc631d

Please sign in to comment.