]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ehca: Fix reported max number of QPs and CQs in systems with >1 adapter
authorStefan Roscher <ossrosch@linux.vnet.ibm.com>
Wed, 22 Oct 2008 22:52:31 +0000 (15:52 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 22 Oct 2008 22:52:31 +0000 (15:52 -0700)
commit10052f3e6f38effa2dc44aede29dd4ff22c03725
treee6b740a392f7c76dec479ec762c837b16d2e0651
parentbe35f22f6c799405d776bfa165a7825408015cfd
IB/ehca: Fix reported max number of QPs and CQs in systems with >1 adapter

Because ehca adapters can differ in the maximum number of QPs and CQs
we have to save the maximum number of these ressources per adapter and
not globally per ehca driver. This fix introduces 2 new members to the
shca structure to store the maximum value for QPs and CQs per adapter.

The module parameters are now used as initial values for those
variables.  If a user selects an invalid number of CQs or QPs we don't
print an error any longer, instead we will inform the user with a
warning and set the values to the respective maximum supported by the
HW.

Signed-off-by: Stefan Roscher <stefan.roscher@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_classes.h
drivers/infiniband/hw/ehca/ehca_cq.c
drivers/infiniband/hw/ehca/ehca_main.c
drivers/infiniband/hw/ehca/ehca_qp.c