RDMA/cxgb3: Don't exceed the max HW CQ depth
authorSteve Wise <swise@opengridcomputing.com>
Sat, 28 Aug 2010 13:35:05 +0000 (13:35 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 2 Sep 2010 21:52:21 +0000 (14:52 -0700)
commitdc4e96ce2dceb649224ee84f83592aac8c54c9b7
tree353967b077a02a3ed4f003a2a8abe36f3136d5f8
parent320b2b8de12698082609ebbc1a17165727f4c893
RDMA/cxgb3: Don't exceed the max HW CQ depth

The max depth supported by T3 is 64K entries.  This fixes a bug
introduced in commit 9918b28d ("RDMA/cxgb3: Increase the max CQ
depth") that causes stalls and possibly crashes in large MPI clusters.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Cc: <stable@kernel.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/cxio_hal.h