RDMA/cxgb4: Fix accounting for unsignaled SQ WRs to deal with wrap
authorSteve Wise <swise@opengridcomputing.com>
Tue, 6 Aug 2013 15:34:36 +0000 (21:04 +0530)
committerRoland Dreier <roland@purestorage.com>
Tue, 13 Aug 2013 18:55:46 +0000 (11:55 -0700)
commit27ca34f54a70cb85895aa7147a6c35f1cd07fa55
tree460c3cad1c580ce0070c8312c0311f982d6fffda
parent1cf24dcef4e1dd0c34d8c39b09a9ce9a01accc72
RDMA/cxgb4: Fix accounting for unsignaled SQ WRs to deal with wrap

When determining how many WRs are completed with a signaled CQE,
correctly deal with queue wraps.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cq.c