Skip to content

sfc: Fix module EEPROM reporting for QSFP modules

Íñigo Huguet requested to merge ihuguet-rh/kernel-cs9:sfc_qsfp into main

Bugzilla: https://bugzilla.redhat.com/2203188

commit 281900a923d4c50df109b52a22ae3cdac150159b Author: Andy Moreton andy.moreton@amd.com Date: Fri Apr 28 12:33:33 2023 +0100

sfc: Fix module EEPROM reporting for QSFP modules

The sfc driver does not report QSFP module EEPROM contents correctly
as only the first page is fetched from hardware.

Commit 0e1a2a3e6e7d ("ethtool: Add SFF-8436 and SFF-8636 max EEPROM
length definitions") added ETH_MODULE_SFF_8436_MAX_LEN for the overall
size of the EEPROM info, so use that to report the full EEPROM contents.

Fixes: 9b17010da57a ("sfc: Add ethtool -m support for QSFP modules")
Signed-off-by: Andy Moreton <andy.moreton@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Signed-off-by: Íñigo Huguet ihuguet@redhat.com

Merge request reports