]> err.no Git - linux-2.6/commit
IB/mthca: Fix SRQ limit event range check
authorDotan Barak <dotanb@mellanox.co.il>
Thu, 13 Jul 2006 08:05:49 +0000 (11:05 +0300)
committerRoland Dreier <rolandd@cisco.com>
Mon, 24 Jul 2006 14:20:32 +0000 (07:20 -0700)
commit1252c517cf3df240ae51946a096035765dfd2e6d
tree87b37913a8bfebdfef3c2ff15d625e1d863bd5b6
parent43db2bc04409b1e1b74f9768e3284cec18a87d0b
IB/mthca: Fix SRQ limit event range check

Mem-free HCAs always keep one spare SRQ WQE, so the SRQ limit cannot
be set beyond srq->max - 1.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_srq.c