linux/Documentation
Jakub Kicinski 9a0f830f80 ethtool: linkstate: add a statistic for PHY down events
The previous attempt to augment carrier_down (see Link)
was not met with much enthusiasm so let's do the simple
thing of exposing what some devices already maintain.
Add a common ethtool statistic for link going down.
Currently users have to maintain per-driver mapping
to extract the right stat from the vendor-specific ethtool -S
stats. carrier_down does not fit the bill because it counts
a lot of software related false positives.

Add the statistic to the extended link state API to steer
vendors towards implementing all of it.

Implement for bnxt and all Linux-controlled PHYs. mlx5 and (possibly)
enic also have a counter for this but I leave the implementation
to their maintainers.

Link: https://lore.kernel.org/r/20220520004500.2250674-1-kuba@kernel.org
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20221104190125.684910-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-11-08 10:36:54 +01:00
..
2022-10-09 08:56:54 -07:00
2022-10-12 15:01:58 -07:00
2022-10-03 16:39:37 -07:00
2022-10-27 12:31:57 -07:00
2022-10-09 22:30:23 -07:00
2022-10-10 12:00:45 -07:00
2022-09-28 09:02:45 +02:00
2022-09-01 00:33:34 -04:00
2022-10-22 15:30:15 -07:00
2022-10-11 20:07:44 -07:00
2022-10-04 10:12:08 -07:00
2022-10-03 16:39:37 -07:00