mlx5: implement ethtool::get_fec_stats
authorJakub Kicinski <kuba@kernel.org>
Thu, 15 Apr 2021 22:53:18 +0000 (15:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 00:08:29 +0000 (17:08 -0700)
commit1703bb50df0e4248b8def88fc6dd43a505479c66
tree349ada73538dacef753810ee5b79055dd0574a3a
parentcab351be53c263c857563eb56b2bbfe67e8a12a0
mlx5: implement ethtool::get_fec_stats

Report corrected bits.

v2: catch reg access errors (Saeed)

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h