• Moni Shoua's avatar
    IB/mlx5: Add support for DC target QP · 776a3906
    Moni Shoua authored
    A DC Target (DCT) QP is represented in the hardware as a unique object.
    This object is created by CREATE_DCT command and destroyed by DESTROY_DCT
    command. However, in the driver we describe it as a QP.
    
    The hardware command that creates a DCT needs parameters that the verb
    create_qp() does not provide. Those remaining parameters are provided
    with the call to the verb modify_qp(). Therefore we delay the actual
    creation of a DCT in the hardware until the stage of modify_qp() to RTR.
    
    A support for query_qp() was added as well. It uses QUERY_DCT command to
    retrieve the applicable fields.
    Signed-off-by: default avatarMoni Shoua <monis@mellanox.com>
    Reviewed-by: default avatarYishai Hadas <yishaih@mellanox.com>
    Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
    Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
    776a3906
main.c 121 KB