diff options
author | Patrisious Haddad <phaddad@nvidia.com> | 2025-06-16 12:14:52 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2025-06-25 03:41:50 -0400 |
commit | 3cc1dbfddf88dc5ecce0a75185061403b1f7352d (patch) | |
tree | 5425781b20558de2a23781f3da18b776276acff7 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 3f5f6321f129ad5a30aa03c99c196b4612be68a8 (diff) |
RDMA/mlx5: Fix HW counters query for non-representor devices
To get the device HW counters, a non-representor switchdev device
should use the mlx5_ib_query_q_counters() function and query all of
the available counters. While a representor device in switchdev mode
should use the mlx5_ib_query_q_counters_vport() function and query only
the Q_Counters without the PPCNT counters and congestion control counters,
since they aren't relevant for a representor device.
Currently a non-representor switchdev device skips querying the PPCNT
counters and congestion control counters, leaving them unupdated.
Fix that by properly querying those counters for non-representor devices.
Fixes: d22467a71ebe ("RDMA/mlx5: Expand switchdev Q-counters to expose representor statistics")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Maher Sanalla <msanalla@nvidia.com>
Link: https://patch.msgid.link/56bf8af4ca8c58e3fb9f7e47b1dca2009eeeed81.1750064969.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions