|
|
4cc9fb |
From 51f9fba287ff7c8b10e0d5291cd66e78d40b6b8f Mon Sep 17 00:00:00 2001
|
|
|
4cc9fb |
From: Gal Pressman <galp@mellanox.com>
|
|
|
4cc9fb |
Date: Sun, 19 Mar 2017 14:10:41 +0200
|
|
|
4cc9fb |
Subject: [PATCH 4/7] ethtool: Fix SFF 8079 cable technology bit parsing
|
|
|
4cc9fb |
|
|
|
4cc9fb |
According to the transceiver compliance code definition in the spec, bits
|
|
|
4cc9fb |
2 & 3 in the 8th byte are indication of active/passive cable, and not
|
|
|
4cc9fb |
specifically related to FC/copper.
|
|
|
4cc9fb |
|
|
|
4cc9fb |
Fixes: 2edf56749abe ("ethtool: Addition of -m option to dump module eeprom")
|
|
|
4cc9fb |
Signed-off-by: Gal Pressman <galp@mellanox.com>
|
|
|
4cc9fb |
Signed-off-by: John W. Linville <linville@tuxdriver.com>
|
|
|
4cc9fb |
(cherry picked from commit e33c8841f26090031d571fddd71dab06f56ab1bf)
|
|
|
4cc9fb |
---
|
|
|
4cc9fb |
sfpid.c | 4 ++--
|
|
|
4cc9fb |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
4cc9fb |
|
|
|
4cc9fb |
diff --git a/sfpid.c b/sfpid.c
|
|
|
4cc9fb |
index fd6415c..1732e5e 100644
|
|
|
4cc9fb |
--- a/sfpid.c
|
|
|
4cc9fb |
+++ b/sfpid.c
|
|
|
4cc9fb |
@@ -137,9 +137,9 @@ static void sff8079_show_transceiver(const __u8 *id)
|
|
|
4cc9fb |
if (id[8] & (1 << 4))
|
|
|
4cc9fb |
printf("%s FC: Longwave laser (LL)\n", pfx);
|
|
|
4cc9fb |
if (id[8] & (1 << 3))
|
|
|
4cc9fb |
- printf("%s FC: Copper Active\n", pfx);
|
|
|
4cc9fb |
+ printf("%s Active Cable\n", pfx);
|
|
|
4cc9fb |
if (id[8] & (1 << 2))
|
|
|
4cc9fb |
- printf("%s FC: Copper Passive\n", pfx);
|
|
|
4cc9fb |
+ printf("%s Passive Cable\n", pfx);
|
|
|
4cc9fb |
if (id[8] & (1 << 1))
|
|
|
4cc9fb |
printf("%s FC: Copper FC-BaseT\n", pfx);
|
|
|
4cc9fb |
/* Fibre Channel transmission media */
|
|
|
4cc9fb |
--
|
|
|
4cc9fb |
1.8.3.1
|
|
|
4cc9fb |
|