]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'ehtool-fec-stats'
authorDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 00:08:30 +0000 (17:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 00:08:30 +0000 (17:08 -0700)
commitaf5191a0e8b2455a35df0e02c87f6076f5ed1d86
tree349ada73538dacef753810ee5b79055dd0574a3a
parent6ec2c0463470b850136c7972cc996c9ad3d79753
parent4029f948377d853c944a89b2a92cbd96fa97344e
Merge branch 'ehtool-fec-stats'

Jakub Kicinski says:

====================
ethtool: add standard FEC statistics

This set adds uAPI for reporting standard FEC statistics, and
implements it in a handful of drivers.

The statistics are taken from the IEEE standard, with one
extra seemingly popular but not standard statistics added.

The implementation is similar to that of the pause frame
statistics, user requests the stats by setting a bit
(ETHTOOL_FLAG_STATS) in the common ethtool header of
ETHTOOL_MSG_FEC_GET.

Since standard defines the statistics per lane what's
reported is both total and per-lane counters:

 # ethtool -I --show-fec eth0
 FEC parameters for eth0:
 Configured FEC encodings: None
 Active FEC encoding: None
 Statistics:
  corrected_blocks: 256
    Lane 0: 255
    Lane 1: 1
  uncorrectable_blocks: 145
    Lane 0: 128
    Lane 1: 17

v2: check for errors in mlx5 register access
====================

Signed-off-by: David S. Miller <davem@davemloft.net>