linux/drivers/infiniband
Maor Gottlieb 05a8410b0f RDMA/mlx5: Fix validation of max_rd_atomic caps for DC
[ Upstream commit 8de8482fe5 ]

Currently, when modifying DC, we validate max_rd_atomic user attribute
against the RC cap, validate against DC. RC and DC QP types have different
device limitations.

This can cause userspace created DC QPs to malfunction.

Fixes: c32a4f296e ("IB/mlx5: Add support for DC Initiator QP")
Link: https://lore.kernel.org/r/0c5aee72cea188c3bb770f4207cce7abc9b6fc74.1672231736.git.leonro@nvidia.com
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-01-12 11:59:13 +01:00
..
core RDMA/nldev: Fix failure to send large messages 2022-12-31 13:14:25 +01:00
hw RDMA/mlx5: Fix validation of max_rd_atomic caps for DC 2023-01-12 11:59:13 +01:00
sw RDMA/siw: Fix pointer cast warning 2022-12-31 13:14:33 +01:00
ulp IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces 2022-12-31 13:14:27 +01:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00