• Stefan Roscher's avatar
    IB/ehca: Fix reported max number of QPs and CQs in systems with >1 adapter · 19f42821
    Stefan Roscher authored
    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: default avatarStefan Roscher <stefan.roscher@de.ibm.com>
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    19f42821
ehca_qp.c 62.3 KB