linux/drivers/infiniband
Mark Zhang c87c6d5050 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>
2023-05-11 23:00:37 +09:00
..
core RDMA/cm: Trace icm_send_rej event before the cm state is reset 2023-05-11 23:00:36 +09:00
hw RDMA/mlx5: Use correct device num_ports when modify DC 2023-05-11 23:00:37 +09:00
sw RDMA/siw: Remove namespace check from siw_netdev_event() 2023-05-11 23:00:36 +09:00
ulp RDMA/srpt: Add a check for valid 'mad_agent' pointer 2023-05-11 23:00:36 +09:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile