[IB] mthca: Better limit checking and reporting
authorJack Morgenstein <jackm@mellanox.co.il>
Mon, 10 Oct 2005 20:48:07 +0000 (13:48 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 17 Oct 2005 22:20:29 +0000 (15:20 -0700)
commitefaae8f71f3088cc73c9e5ceabbd314aa82ac768
treeb19084ae0a9dc6837cb2837cbd21386c9f1b2e0e
parent4ab6fb7e5b3d34b65a1c3473d80d9d1a462d3a49
[IB] mthca: Better limit checking and reporting

Check the sizes of CQs, QPs and SRQs when creating objects, and fail
instead of creating too-big queues.  Also return real limits instead
of just plausible-sounding values from mthca_query_device().

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_main.c
drivers/infiniband/hw/mthca/mthca_mcg.c
drivers/infiniband/hw/mthca/mthca_provider.c
drivers/infiniband/hw/mthca/mthca_qp.c
drivers/infiniband/hw/mthca/mthca_srq.c