[ethtool] 10/20: ethtool: Fix SFF 8079 cable technology bit parsing
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Wed Aug 30 12:59:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository ethtool.
commit e33c8841f26090031d571fddd71dab06f56ab1bf
Author: Gal Pressman <galp at mellanox.com>
Date: Sun Mar 19 14:10:41 2017 +0200
ethtool: Fix SFF 8079 cable technology bit parsing
According to the transceiver compliance code definition in the spec, bits
2 & 3 in the 8th byte are indication of active/passive cable, and not
specifically related to FC/copper.
Fixes: 2edf56749abe ("ethtool: Addition of -m option to dump module eeprom")
Signed-off-by: Gal Pressman <galp at mellanox.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
---
sfpid.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sfpid.c b/sfpid.c
index fd6415c..1732e5e 100644
--- a/sfpid.c
+++ b/sfpid.c
@@ -137,9 +137,9 @@ static void sff8079_show_transceiver(const __u8 *id)
if (id[8] & (1 << 4))
printf("%s FC: Longwave laser (LL)\n", pfx);
if (id[8] & (1 << 3))
- printf("%s FC: Copper Active\n", pfx);
+ printf("%s Active Cable\n", pfx);
if (id[8] & (1 << 2))
- printf("%s FC: Copper Passive\n", pfx);
+ printf("%s Passive Cable\n", pfx);
if (id[8] & (1 << 1))
printf("%s FC: Copper FC-BaseT\n", pfx);
/* Fibre Channel transmission media */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/ethtool.git
More information about the Kernel-svn-changes
mailing list