Skip to content

Commit 65f90c8

Browse files
Lior Nahmansonjgunthorpe
authored andcommitted
RDMA/mlx5: Relax DCS QP creation checks
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: 11656f5 ("RDMA/mlx5: Add DCS offload support") Link: https://lore.kernel.org/r/3e7b3363fd73686176cc584295e86832a7cf99b2.1630320354.git.leonro@nvidia.com Signed-off-by: Lior Nahmanson <liorna@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 1a01827 commit 65f90c8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • drivers/infiniband/hw/mlx5

drivers/infiniband/hw/mlx5/qp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,8 +2811,7 @@ static int process_vendor_flags(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp,
28112811
process_vendor_flag(dev, &flags, MLX5_QP_FLAG_TYPE_DCI, true, qp);
28122812
process_vendor_flag(dev, &flags, MLX5_QP_FLAG_TYPE_DCT, true, qp);
28132813
process_vendor_flag(dev, &flags, MLX5_QP_FLAG_DCI_STREAM,
2814-
MLX5_CAP_GEN(mdev, log_max_dci_stream_channels) &&
2815-
MLX5_CAP_GEN(mdev, log_max_dci_errored_streams),
2814+
MLX5_CAP_GEN(mdev, log_max_dci_stream_channels),
28162815
qp);
28172816

28182817
process_vendor_flag(dev, &flags, MLX5_QP_FLAG_SIGNATURE, true, qp);

0 commit comments

Comments
 (0)