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)
commitcab351be53c263c857563eb56b2bbfe67e8a12a0
treece1c94176e160a35440b562442e277c0f7f44624
parentc9ca5c3aabafcaa934731b8a841f28f8df990b7f
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