linux/drivers/infiniband
Junxian Huang 1210137c7f RDMA/hns: Fix unnecessary port_num transition in HW stats allocation
[ Upstream commit b4a797b894 ]

The num_ports capability of devices should be compared with the
number of port(i.e. the input param "port_num") but not the port
index(i.e. port_num - 1).

Fixes: 5a87279591 ("RDMA/hns: Support hns HW stats")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20231017125239.164455-7-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:59:21 +01:00
..
core RDMA/core: Use size_{add,sub,mul}() in calls to struct_size() 2023-11-20 11:59:18 +01:00
hw RDMA/hns: Fix unnecessary port_num transition in HW stats allocation 2023-11-20 11:59:21 +01:00
sw RDMA/siw: Fix connection failure handling 2023-09-11 14:53:23 +03:00
ulp RDMA/srp: Do not call scsi_done() from srp_abort() 2023-09-11 14:15:58 +03:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile