]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57783594adfe6012f96c094e0c07916510e92da7
treead3d84ada07fb27f8d3f4e8781cc86e0d26615a6
parent101363ac6fa1b26fbdc50b58adf4a31ea10adcd2
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