]> Git Repo - linux.git/commitdiff
RDMA/mlx5: Relax DCS QP creation checks
authorLior Nahmanson <[email protected]>
Mon, 30 Aug 2021 10:48:49 +0000 (13:48 +0300)
committerJason Gunthorpe <[email protected]>
Mon, 30 Aug 2021 12:47:40 +0000 (09:47 -0300)
In order to create DCS QPs, we don't need to rely on both
log_max_dci_stream_channels and log_max_dci_errored_streams capabilities.

Fixes: 11656f593a86 ("RDMA/mlx5: Add DCS offload support")
Link: https://lore.kernel.org/r/3e7b3363fd73686176cc584295e86832a7cf99b2.1630320354.git.leonro@nvidia.com
Signed-off-by: Lior Nahmanson <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/infiniband/hw/mlx5/qp.c

index 556b5e7acd46ceec28972a3f8b6be9d666ac9679..b2fca110346c1740fe9a5912165ffe4270e667b0 100644 (file)
@@ -2811,8 +2811,7 @@ static int process_vendor_flags(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp,
        process_vendor_flag(dev, &flags, MLX5_QP_FLAG_TYPE_DCI, true, qp);
        process_vendor_flag(dev, &flags, MLX5_QP_FLAG_TYPE_DCT, true, qp);
        process_vendor_flag(dev, &flags, MLX5_QP_FLAG_DCI_STREAM,
-                           MLX5_CAP_GEN(mdev, log_max_dci_stream_channels) &&
-                           MLX5_CAP_GEN(mdev, log_max_dci_errored_streams),
+                           MLX5_CAP_GEN(mdev, log_max_dci_stream_channels),
                            qp);
 
        process_vendor_flag(dev, &flags, MLX5_QP_FLAG_SIGNATURE, true, qp);
This page took 0.064919 seconds and 4 git commands to generate.