OSDN Git Service

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)
commitefea95d45e6ab4a30df9801f8e9bf68007ee9b43
tree99357549223b5d1110eaee988c9519d8c8ed6321
parent806ffb1d504927d1449397377eac63bb63489266
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