diff options
author | Steve Wise <swise@opengridcomputing.com> | 2011-06-01 17:49:14 +0000 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-06-17 11:52:45 -0700 |
commit | 2ff7d09a1b0f20f2d9c1bde0e003d4e384de2313 (patch) | |
tree | 9eb1621a6806950d89496c5dde9ff36b6ae90b71 /drivers/net/mipsnet.c | |
parent | 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff) |
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>
Diffstat (limited to 'drivers/net/mipsnet.c')
0 files changed, 0 insertions, 0 deletions