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