]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Expose FEC counters via ethtool
authorLama Kayal <lkayal@nvidia.com>
Mon, 13 Sep 2021 13:06:35 +0000 (16:06 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 7 Jan 2022 00:22:53 +0000 (16:22 -0800)
commitd02df99f0cdb944633352a21e4ac1411bcc1e926
tree28fb2c21cd49f11d5b58f6c676c12677546fc70e
parente4aa2d3ca4ca384c9439ccce4390db98aeb05319
net/mlx5e: Expose FEC counters via ethtool

Add FEC counters' statistics of corrected_blocks and
uncorrectable_blocks, along with their lanes via ethtool.

HW supports corrected_blocks and uncorrectable_blocks counters both for
RS-FEC mode and FC-FEC mode. In FC mode these counters are accumulated
per lane, while in RS mode the correction method crosses lanes, thus
only total corrected_blocks and uncorrectable_blocks are reported in
this mode.

Signed-off-by: Lama Kayal <lkayal@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c