]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Garbled output for "ethtool -m"
authorDoron Shikmoni <doron.shikmoni@gmail.com>
Wed, 17 Feb 2016 07:34:25 +0000 (09:34 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 6 Apr 2016 20:24:38 +0000 (13:24 -0700)
commit5a81e13686917d48a9ec956f6dc9f3ec285fbad5
tree99357549223b5d1110eaee988c9519d8c8ed6321
parentf0ca0a1b7720eb00511efa1d74926d0e00a195b9
igb: Garbled output for "ethtool -m"

Garbled output for "ethtool -m ethX", in igb-driven NICs with module /
plugin EEPROM (i.e. SFP information). Each output data byte appears
duplicated.

In igb_ethtool.c, igb_get_module_eeprom() is reading the EEPROM via i2c;
the eeprom offset for each word that's read via igb_read_phy_reg_i2c()
was passed in #words, whereas it needs to be a byte offset.
This patches fixes the bug.

Signed-off-by: Doron Shikmoni <doron.shikmoni@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c