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

Configure Feed

Select the types of activity you want to include in your feed.

net: ethtool: Add impedance mismatch result code to cable test

Some PHYs can recognize during a cable test if the impedance in the cable
is okay. They can detect reflections caused by impedance discontinuity
between a regular 100 Ohm cable and an abnormal part with a higher or
lower impedance.

This commit introduces a new result code:
ETHTOOL_A_CABLE_RESULT_CODE_IMPEDANCE_MISMATCH,
which represents the results of a cable test indicating issues with
impedance integrity.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240402201123.2961909-2-paweldembicki@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Pawel Dembicki and committed by
Jakub Kicinski
9cc8a6e6 ada9841e

+4
+4
include/uapi/linux/ethtool_netlink.h
··· 515 515 ETHTOOL_A_CABLE_RESULT_CODE_OPEN, 516 516 ETHTOOL_A_CABLE_RESULT_CODE_SAME_SHORT, 517 517 ETHTOOL_A_CABLE_RESULT_CODE_CROSS_SHORT, 518 + /* detected reflection caused by the impedance discontinuity between 519 + * a regular 100 Ohm cable and a part with the abnormal impedance value 520 + */ 521 + ETHTOOL_A_CABLE_RESULT_CODE_IMPEDANCE_MISMATCH, 518 522 }; 519 523 520 524 enum {