Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ethtool: Add new result codes for TDR diagnostics

Add new result codes to support TDR diagnostics in preparation for
Open Alliance 1000BaseT1 TDR support:

- ETHTOOL_A_CABLE_RESULT_CODE_NOISE: TDR not possible due to high noise
level.
- ETHTOOL_A_CABLE_RESULT_CODE_RESOLUTION_NOT_POSSIBLE: TDR resolution not
possible / out of distance.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/20240812073046.1728288-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Oleksij Rempel and committed by
Jakub Kicinski
2140e63c 39911731

+4
+4
include/uapi/linux/ethtool_netlink.h
··· 556 556 * a regular 100 Ohm cable and a part with the abnormal impedance value 557 557 */ 558 558 ETHTOOL_A_CABLE_RESULT_CODE_IMPEDANCE_MISMATCH, 559 + /* TDR not possible due to high noise level */ 560 + ETHTOOL_A_CABLE_RESULT_CODE_NOISE, 561 + /* TDR resolution not possible / out of distance */ 562 + ETHTOOL_A_CABLE_RESULT_CODE_RESOLUTION_NOT_POSSIBLE, 559 563 }; 560 564 561 565 enum {