OpenCloudOS-Kernel/drivers/infiniband/hw
Michael Guralnik 910be4f9f8 RDMA/mlx5: Fix port number for counter query in multi-port configuration
[ Upstream commit be121ffb384f53e966ee7299ffccc6eeb61bc73d ]

Set the correct port when querying PPCNT in multi-port configuration.
Distinguish between cases where switchdev mode was enabled to multi-port
configuration and don't overwrite the queried port to 1 in multi-port
case.

Fixes: 74b30b3ad5 ("RDMA/mlx5: Set local port to one when accessing counters")
Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Link: https://lore.kernel.org/r/9bfcc8ade958b760a51408c3ad654a01b11f7d76.1712134988.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-27 17:11:34 +02:00
..
bnxt_re RDMA/bnxt_re: Add a missing check in bnxt_qplib_query_srq 2024-03-01 13:35:04 +01:00
cxgb4 RDMA/cxgb4: Check skb value for failure to allocate 2023-09-11 14:55:53 +03:00
efa RDMA/efa: Fix wrong resources deallocation order 2023-08-22 17:21:53 +03:00
erdma RDMA/erdma: Fix NULL pointer access in regmr_cmd 2023-09-18 10:42:19 +03:00
hfi1 IB/hfi1: Fix a memleak in init_credit_return 2024-03-01 13:35:04 +01:00
hns RDMA/hns: Fix mis-modifying default congestion control algorithm 2024-03-26 18:20:01 -04:00
irdma RDMA/irdma: Remove duplicate assignment 2024-03-26 18:19:58 -04:00
mana RDMA/mana_ib: Fix bug in creation of dma regions 2024-03-26 18:20:02 -04:00
mlx4 IB/mlx4: Fix the size of a buffer in add_port_entries() 2023-09-23 21:53:24 +03:00
mlx5 RDMA/mlx5: Fix port number for counter query in multi-port configuration 2024-04-27 17:11:34 +02:00
mthca RDMA/usnic: Silence uninitialized symbol smatch warnings 2024-01-25 15:35:31 -08:00
ocrdma RDMA: Remove unnecessary ternary operators 2023-07-31 15:16:12 +03:00
qedr RDMA/qedr: Fix qedr_create_user_qp error flow 2024-03-01 13:35:05 +01:00
qib v6.6 merge window RDMA pull request 2023-09-01 16:49:33 -07:00
usnic mm/gup: remove vmas parameter from pin_user_pages() 2023-06-09 16:25:26 -07:00
vmw_pvrdma RDMA/vmw_pvrdma: Remove unnecessary check on wr->opcode 2023-06-09 14:11:53 -03:00
Makefile RDMA/mana_ib: Add a driver for Microsoft Azure Network Adapter 2022-11-11 11:40:09 +02:00