]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Always do GTS write if cidx_inc == CIDXINC_MASK
authorSteve Wise <swise@opengridcomputing.com>
Tue, 6 Aug 2013 15:34:38 +0000 (21:04 +0530)
committerRoland Dreier <roland@purestorage.com>
Tue, 13 Aug 2013 18:55:47 +0000 (11:55 -0700)
commit529567e7792b5b4b878cd1e644396d306a93e008
tree6f808e3798630bfafe80b49eb5226e97d9470aca
parent547c1fff345126f0171aa44c4285b12c7af78bf3
RDMA/cxgb4: Always do GTS write if cidx_inc == CIDXINC_MASK

When polling, we do a GTS update if the accumulated cidx_inc == the CQ
depth / 16.  However, if the CQ is large enough, Cq depth / 16 exceeds
the size of the field in the GTS word.  So we also need to update if
cidx_inc hits CIDXINC_MASK to avoid overflowing the field.

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/t4.h