[IB] mthca: detect SRQ overflow
authorRoland Dreier <rolandd@cisco.com>
Thu, 6 Oct 2005 20:25:16 +0000 (13:25 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 17 Oct 2005 22:20:28 +0000 (15:20 -0700)
commite23d6d2b090658007732770720a44375cba23200
tree277afdc20477a3ab8ca9a1ff26c478e047a3a581
parent90f104da22bbf2e2b8a2136c12fb4e013fccf504
[IB] mthca: detect SRQ overflow

The hardware relies on us keeping one extra work request that never
gets used in SRQs.  Add checks to the SRQ work request posting
functions so that they fail when someone is about to use up that extra
work request, rather than when someone uses the very last work request.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_srq.c