linux/drivers/infiniband/hw
Mark Zhang 07ad6cc82b RDMA/mlx5: Use correct device num_ports when modify DC
[ Upstream commit 746aa3c8cb ]

Just like other QP types, when modify DC, the port_num should be compared
with dev->num_ports, instead of HCA_CAP.num_ports.  Otherwise Multi-port
vHCA on DC may not work.

Fixes: 776a3906b6 ("IB/mlx5: Add support for DC target QP")
Link: https://lore.kernel.org/r/20230420013906.1244185-1-markzhang@nvidia.com
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-05-11 23:03:35 +09:00
..
bnxt_re IB: move from strlcpy with unused retval to strscpy 2022-08-21 14:18:02 +03:00
cxgb4 iw_cxgb4: Fix potential NULL dereference in c4iw_fill_res_cm_id_entry() 2023-03-10 09:33:39 +01:00
efa RDMA/efa: Add EFA 0xefa2 PCI ID 2022-10-24 14:11:58 +03:00
erdma RDMA/erdma: Use fixed hardware page size 2023-05-11 23:03:33 +09:00
hfi1 IB/hfi1: Fix bugs with non-PAGE_SIZE-end multi-iovec user SDMA requests 2023-05-11 23:03:34 +09:00
hns RDMA/hns: Fix refcount leak in hns_roce_mmap 2023-03-10 09:33:29 +01:00
irdma RDMA/irdma: Add ipv4 check to irdma_find_listener() 2023-04-20 12:35:07 +02:00
mlx4 RDMA/mlx4: Prevent shift wrapping in set_user_sq_size() 2023-05-11 23:03:33 +09:00
mlx5 RDMA/mlx5: Use correct device num_ports when modify DC 2023-05-11 23:03:35 +09: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: use iommu_map_atomic() under spin_lock() 2023-02-14 19:11:43 +01: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