aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-11-09 20:18:51 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 19:57:04 -0800
commit9351061f8b56d566a878af69aaa7ca20629b10b2 (patch)
treef59835b55c292b14aaaaffbf4942f7217260f23f
parentf0721148654ca090423638a490397e81e8f2745b (diff)
downloadlibmthca-9351061f8b56d566a878af69aaa7ca20629b10b2.tar.gz
Handle wrap-around in mthca_cq_clean()
Fix mthca_cq_clean() to handle wrap-around of CQ indices, especially the case where the CQ is empty. Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3975652..ccc6d4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-09 Roland Dreier <roland@cisco.com>
+
+ * src/cq.c (mthca_cq_clean): Handle case where CQ indices wrap
+ around by treating signed comparisons of prod_index and
+ cq->cons_index carefully.
+
2005-11-09 Michael S. Tsirkin <mst@mellanox.co.il>
* src/srq.c (mthca_tavor_post_srq_recv), src/qp.c