On Tue, 29 Sep 2026 09:07:28 +0200 Roman Khromenok <[email protected]> wrote:
> Since 22.07, ethdev contains SFF-8079, SFF-8472 and SFF-8636 decoders > for pluggable module EEPROM (SFP, QSFP), ported from ethtool. > They are reachable only through the telemetry command > /ethdev/module_eeprom, which reads the EEPROM of a DPDK port > and returns the result as a telemetry dictionary. Applied to net-next with one addition. sff_telemetry.h and rte_telemetry.h are include in rte_ethdev.c but no longer used. AI also saw something you should look at: Pre-existing, not for this series: sff_8472_calibration() applies SFF-8472 external RX power calibration as RX_PWR(0) + x * (RX_PWR(1) + RX_PWR(2) + RX_PWR(3)) The spec formula is RX_PWR(4)*x^4 + RX_PWR(3)*x^3 + RX_PWR(2)*x^2 + RX_PWR(1)*x + RX_PWR(0) SFF_A2_CAL_RXPWR4 is defined but never used. The code was carried over from ethtool's sfpdiag.c, which has the same formula. The new test only sets RX_PWR(1), so it does not hit this. A separate fix would carry:

