• Alexander Schmidt's avatar
    IB/ehca: Update qp_state on cached modify_qp() · 51ad241a
    Alexander Schmidt authored
    Since the introduction of the port auto-detect mode for ehca, calls to
    modify_qp() may be cached in the device driver when the ports are not
    activated yet. When a modify_qp() call is cached, the qp state remains
    untouched until the port is activated, which will leave the qp in the
    reset state. In the reset state, however, it is not allowed to post SQ
    WQEs, which confuses applications like ib_mad.
    
    The solution for this problem is to immediately set the qp state as
    requested by modify_qp(), even when the call is cached.
    Signed-off-by: default avatarAlexander Schmidt <alexs@linux.vnet.ibm.com>
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    51ad241a
ehca_qp.c 56.8 KB