[3/3] ethtool: add 0x16 and 0x1c extended compliance codes
diff mbox series

Message ID E1iLYuC-0000t8-A3@rmk-PC.armlinux.org.uk
State Accepted
Delegated to: John Linville
Headers show
  • [1/3] ethtool: correctly interpret bitrate of 255
Related show

Commit Message

Russell King Oct. 18, 2019, 8:31 p.m. UTC
From: Russell King <rmk+kernel@armlinux.org.uk>

0x16 and 0x1c are 10G Base-T extended compliance codes.  Add these
to our decoding.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
 sfpid.c | 4 ++++
 1 file changed, 4 insertions(+)

diff mbox series

diff --git a/sfpid.c b/sfpid.c
index 3c50c456f93d..ded3be7337d8 100644
--- a/sfpid.c
+++ b/sfpid.c
@@ -185,10 +185,14 @@  static void sff8079_show_transceiver(const __u8 *id)
 		printf("%s Extended: 25G Base-CR CA-S\n", pfx);
 	if (id[36] == 0xd)
 		printf("%s Extended: 25G Base-CR CA-N\n", pfx);
+	if (id[36] == 0x16)
+		printf("%s Extended: 10Gbase-T with SFI electrical interface\n", pfx);
 	if (id[36] == 0x18)
 		printf("%s Extended: 100G AOC or 25GAUI C2M AOC with worst BER of 10^(-12)\n", pfx);
 	if (id[36] == 0x19)
 		printf("%s Extended: 100G ACC or 25GAUI C2M ACC with worst BER of 10^(-12)\n", pfx);
+	if (id[36] == 0x1c)
+		printf("%s Extended: 10Gbase-T Short Reach\n", pfx);
 static void sff8079_show_encoding(const __u8 *id)