linux/drivers/infiniband
Michael Guralnik 4d0f5f7f58 RDMA/mlx5: Fix port number for counter query in multi-port configuration
[ Upstream commit be121ffb38 ]

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-05-02 16:17:09 +02:00
..
core RDMA/cma: Fix truncation compilation warning in make_cma_ports 2023-10-10 21:45:02 +02:00
hw RDMA/mlx5: Fix port number for counter query in multi-port configuration 2024-05-02 16:17:09 +02:00
sw RDMA/rxe: Fix the use-before-initialization error of resp_pkts 2023-06-21 15:39:58 +02:00
ulp RDMA/srpt: fix function pointer cast warnings 2024-03-01 13:06:10 +01:00
Kconfig IB/ucm: fix UCM link error 2018-08-21 16:56:32 -06:00
Makefile