igb: Support to read and export SFF-8472/8079 data
authorAkeem G. Abodunrin <akeem.g.abodunrin@intel.com>
Thu, 11 Apr 2013 06:36:35 +0000 (06:36 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Apr 2013 23:39:33 +0000 (16:39 -0700)
commitf69aa3909eeb8444f9b980f6315696c3b0bb57d5
treea7a3aa46bcfc9f6a450cad4e9a754513b9cec6fc
parentf502ef7d77dd09bad9c93ee854fcb61d6fc29815
igb: Support to read and export SFF-8472/8079 data

This patch adds support to read and export SFF-8472/8079 (SFP data)
over i2c, through Ethtool.

v2: Changed implementation to accommodate any offset within SFF module
    length boundary.

Reported-by: Aurélien Guillaume <footplus@gmail.com>
CC: Aurélien Guillaume <footplus@gmail.com>
CC: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Akeem G Abodunrin <akeem.g.abodunrin@intel.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.h
drivers/net/ethernet/intel/igb/igb_ethtool.c