Skip to content

Commit acd245b

Browse files
PatrisiousHaddadrleon
authored andcommitted
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: aac4492 ("IB/mlx5: Update counter implementation for dual port RoCE") Signed-off-by: Patrisious Haddad <[email protected]> Reviewed-by: Michael Guralnik <[email protected]> Link: https://patch.msgid.link/9cace74dcf106116118bebfa9146d40d4166c6b0.1750064969.git.leon@kernel.org Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 3cc1dbf commit acd245b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/mlx5/counters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ static int do_get_hw_stats(struct ib_device *ibdev,
418418
*/
419419
goto done;
420420
}
421-
ret = mlx5_lag_query_cong_counters(dev->mdev,
421+
ret = mlx5_lag_query_cong_counters(mdev,
422422
stats->value +
423423
cnts->num_q_counters,
424424
cnts->num_cong_counters,

0 commit comments

Comments
 (0)