summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorPatrisious Haddad <phaddad@nvidia.com>2025-06-16 12:14:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-10 16:03:07 +0200
commitefb3413f6ba953ff774cab301705d8fca0576dd1 (patch)
treee4a6a7140c9b44a0d667ddc707ca3a6c1ff2aa10 /drivers/infiniband
parent301303d14da6a1b840fc078158ac4b94cf7a4bc1 (diff)
downloadlinux-efb3413f6ba953ff774cab301705d8fca0576dd1.tar.gz
linux-efb3413f6ba953ff774cab301705d8fca0576dd1.tar.bz2
linux-efb3413f6ba953ff774cab301705d8fca0576dd1.zip
RDMA/mlx5: Fix CC counters query for MPV
[ Upstream commit acd245b1e33fc4b9d0f2e3372021d632f7ee0652 ] In case, CC counters are querying for the second port use the correct core device for the query instead of always using the master core device. Fixes: aac4492ef23a ("IB/mlx5: Update counter implementation for dual port RoCE") Signed-off-by: Patrisious Haddad <phaddad@nvidia.com> Reviewed-by: Michael Guralnik <michaelgur@nvidia.com> Link: https://patch.msgid.link/9cace74dcf106116118bebfa9146d40d4166c6b0.1750064969.git.leon@kernel.org Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/mlx5/counters.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/counters.c b/drivers/infiniband/hw/mlx5/counters.c
index f4aa72166cf3..d06128501ce4 100644
--- a/drivers/infiniband/hw/mlx5/counters.c
+++ b/drivers/infiniband/hw/mlx5/counters.c
@@ -407,7 +407,7 @@ static int do_get_hw_stats(struct ib_device *ibdev,
*/
goto done;
}
- ret = mlx5_lag_query_cong_counters(dev->mdev,
+ ret = mlx5_lag_query_cong_counters(mdev,
stats->value +
cnts->num_q_counters,
cnts->num_cong_counters,