OSDN Git Service

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)
commit0a1498ebfa55b860e8ec929d73585bcd3fd81a4e
tree28fb2c21cd49f11d5b58f6c676c12677546fc70e
parentf79a609ea6bf54ad2d2c24e4de4524288b221666
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