summaryrefslogtreecommitdiffstats
path: root/Documentation/networking/statistics.rst
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-04-16 00:53:15 +0200
committerDavid S. Miller <davem@davemloft.net>2021-04-16 02:08:29 +0200
commitbe85dbfeb37c8c4d4344da2ee594d78034b82489 (patch)
tree972fb6fe03f43402a5e71dc827bbb276cd1bb43d /Documentation/networking/statistics.rst
parentethtool: fec_prepare_data() - jump to error handling (diff)
downloadlinux-be85dbfeb37c8c4d4344da2ee594d78034b82489.tar.xz
linux-be85dbfeb37c8c4d4344da2ee594d78034b82489.zip
ethtool: add FEC statistics
Similarly to pause statistics add stats for FEC. The IEEE standard mandates two sets of counters: - 30.5.1.1.17 aFECCorrectedBlocks - 30.5.1.1.18 aFECUncorrectableBlocks where block is a block of bits FEC operates on. Each of these counters is defined per lane (PCS instance). Multiple vendors provide number of corrected _bits_ rather than/as well as blocks. This set adds the 2 standard-based block counters and a extra one for corrected bits. Counters are exposed to user space via netlink in new attributes. Each attribute carries an array of u64s, first element is the total count, and the following ones are a per-lane break down. Much like with pause stats the operation will not fail when driver does not implement the get_fec_stats callback (nor can the driver fail the operation by returning an error). If stats can't be reported the relevant attributes will be empty. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/statistics.rst')
-rw-r--r--Documentation/networking/statistics.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/networking/statistics.rst b/Documentation/networking/statistics.rst
index 234abedc29b2..b748fe44ee02 100644
--- a/Documentation/networking/statistics.rst
+++ b/Documentation/networking/statistics.rst
@@ -130,6 +130,7 @@ the `ETHTOOL_FLAG_STATS` flag in `ETHTOOL_A_HEADER_FLAGS`. Currently
statistics are supported in the following commands:
- `ETHTOOL_MSG_PAUSE_GET`
+ - `ETHTOOL_MSG_FEC_GET`
debugfs
-------
@@ -176,3 +177,4 @@ translated to netlink attributes when dumped. Drivers must not overwrite
the statistics they don't report with 0.
- ethtool_pause_stats()
+- ethtool_fec_stats()