net/mlx5e: Expose physical layer statistical counters to ethtool
authorGal Pressman <galp@mellanox.com>
Tue, 23 Aug 2016 09:23:29 +0000 (12:23 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 19 Jan 2017 21:20:01 +0000 (23:20 +0200)
commit5db0a4f64c042f6f64bd645488278f7a5df33c07
treead3d84ada07fb27f8d3f4e8781cc86e0d26615a6
parentd8dc0508c50f838f8abcf023cd74ca9a0f86b5a8
net/mlx5e: Expose physical layer statistical counters to ethtool

Use ethtool -S to query physical layer statistical counters including:
- rx_symbol_errors_phy: Number of symbol errors that were not corrected
  by FEC correction algorithm or that FEC was not active on this interface.

- rx_corrected_bits_phy: Number of corrected bits according to active
  FEC (RS/FC).

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h