]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Don't exceed hw IQ depth limit for user CQs
authorSteve Wise <swise@opengridcomputing.com>
Wed, 1 Jun 2011 17:49:14 +0000 (17:49 +0000)
committerRoland Dreier <roland@purestorage.com>
Fri, 17 Jun 2011 18:52:45 +0000 (11:52 -0700)
commitf20677ac2c013587cdb06eb707052aa6743e7c19
tree9eb1621a6806950d89496c5dde9ff36b6ae90b71
parent380abddf94be3476f85e64e22814c928018c2f42
RDMA/cxgb4: Don't exceed hw IQ depth limit for user CQs

Memory allocated for user CQs gets rounded up to the next page
boundary.  And after rounding, we recalculate the resulting IQ depth
and we need to make sure we don't exceed the HW limits.

This bug can result a much smaller CQ allocated than was expected if
the HW size field is exceeded, resulting in CQ overflow failures.

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