]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: ef10: implement ethtool::get_fec_stats
authorJakub Kicinski <kuba@kernel.org>
Thu, 15 Apr 2021 22:53:17 +0000 (15:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 00:08:29 +0000 (17:08 -0700)
commit32567ea58a527ec95c532a710593b3abd047fd4b
treece1c94176e160a35440b562442e277c0f7f44624
parent7b742294eb40447dc0d9370dc06ff30f1b4c6e58
sfc: ef10: implement ethtool::get_fec_stats

Report what appears to be the standard block counts:
 - 30.5.1.1.17 aFECCorrectedBlocks
 - 30.5.1.1.18 aFECUncorrectableBlocks

Don't report the per-lane symbol counts, if those really
count symbols they are not what the standard calls for
(even if symbols seem like the most useful thing to count.)

Fingers crossed that fec_corrected_errors is not in symbols.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/net_driver.h