linux/drivers/infiniband/hw
Maor Gottlieb 5f87d4dc58 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 12:02:21 +01:00
..
bnxt_re IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
cxgb4 treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
efa RDMA/efa: Add EFA 0xefa2 PCI ID 2022-10-24 14:11:58 +03:00
erdma Linux 6.0 2022-10-06 19:48:45 -03:00
hfi1 RDMA/hfi1: Fix error return code in parse_platform_config() 2022-12-31 13:32:36 +01:00
hns RDMA/hns: Fix XRC caps on HIP08 2022-12-31 13:32:37 +01:00
irdma RDMA/irdma: Initialize net_type before checking it 2022-12-31 13:32:33 +01:00
mlx4 treewide: use get_random_u32() when possible 2022-10-11 17:42:58 -06:00
mlx5 RDMA/mlx5: Fix validation of max_rd_atomic caps for DC 2023-01-12 12:02:21 +01:00
mthca IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
ocrdma IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
qedr RDMA/qedr: clean up work queue on failure in qedr_alloc_resources() 2022-10-28 12:59:40 -03:00
qib RDMA/qib: fix repeated words in comments 2022-09-20 14:11:14 +03:00
usnic RDMA/usnic: fix set-but-not-unused variable 'flags' warning 2022-09-29 11:32:53 +03:00
vmw_pvrdma RDMA/pvrdma: Remove useless DMA-32 fallback configuration 2022-01-28 10:49:04 -04:00
Makefile RDMA/erdma: Add driver to kernel build environment 2022-07-27 16:04:05 -03:00