41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
From daaee9898eeb1ee187247fd1ed5452440eba9edc Mon Sep 17 00:00:00 2001
|
|
From: Kamal Heib <kheib@redhat.com>
|
|
Date: Thu, 16 Apr 2026 17:43:26 -0400
|
|
Subject: [PATCH] RDMA/mlx5: Fix CC counters query for MPV
|
|
|
|
JIRA: https://redhat.atlassian.net/browse/RHEL-169055
|
|
|
|
commit acd245b1e33fc4b9d0f2e3372021d632f7ee0652
|
|
Author: Patrisious Haddad <phaddad@nvidia.com>
|
|
Date: Mon Jun 16 12:14:53 2025 +0300
|
|
|
|
RDMA/mlx5: Fix CC counters query for MPV
|
|
|
|
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: Kamal Heib <kheib@redhat.com>
|
|
|
|
diff --git a/drivers/infiniband/hw/mlx5/counters.c b/drivers/infiniband/hw/mlx5/counters.c
|
|
index 943e9eb2ad20..a506fafd2b15 100644
|
|
--- a/drivers/infiniband/hw/mlx5/counters.c
|
|
+++ b/drivers/infiniband/hw/mlx5/counters.c
|
|
@@ -418,7 +418,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,
|
|
--
|
|
2.50.1 (Apple Git-155)
|
|
|