This change adds hw_counters to the existing infiniband class so that additional counter information for infiniband devices can be obtained.
In preparing this PR, I have confirmed that hw_counters for Infiniband devices can be obtained from the mlx5_core kernel module included in multiple Linux distributions and multiple OS versions.
I have also confirmed that it is possible to get hw_counters from the mlx5_core kernel module included in the OFED driver.
However, I have not checked for other cases (e.g. mlx4_core), so this implementation is limited to mlx5 only.
This change adds
hw_counters
to the existing infiniband class so that additional counter information for infiniband devices can be obtained.In preparing this PR, I have confirmed that
hw_counters
for Infiniband devices can be obtained from themlx5_core
kernel module included in multiple Linux distributions and multiple OS versions. I have also confirmed that it is possible to gethw_counters
from themlx5_core
kernel module included in the OFED driver. However, I have not checked for other cases (e.g. mlx4_core), so this implementation is limited to mlx5 only.