OSDN Git Service

ice: Reimplement module reads used by ethtool
authorScott W Taylor <scott.w.taylor@intel.com>
Wed, 31 Mar 2021 21:17:00 +0000 (14:17 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 15 Apr 2021 00:00:06 +0000 (17:00 -0700)
commite9c9692c8a81aacf0854f68ab54dc182f8be38e8
tree07919ff5c4264537ad80ae9f57d0d941c71d81a7
parentd59684a07e37b06295e314301c9d0c04915a52f7
ice: Reimplement module reads used by ethtool

There was an excessive increment of the QSFP page, which is
now fixed. Additionally, this new update now reads 8 bytes
at a time and will retry each request if the module/bus is
busy.

Also, prevent reading from upper pages if module does not
support those pages.

Signed-off-by: Scott W Taylor <scott.w.taylor@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c