ethtool: Include SFP serial number and date in EEPROM dump
ethtool -m currently omits the serial number, date code, and other useful
EEPROM fields defined in INF-8074, which is part of the SFF-8079 standard.
This patch adds them.
It also trims space characters from the end of ASCII text fields.
$ ethtool -m eth0
...
Option values : 0x00 0x10
Option : TX_DISABLE implemented
BR margin, max : 0%
BR margin, min : 0%
Vendor SN : AGC143953079
Date code : 140926
Signed-off-by: Ed Swierk <eswierk@skyportsystems.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
1 file changed