Reading SFP EEPROM from a QLogic FC HBA: qla2xxx exposes /sys/.../hostN/sfp
Asked Active Viewed 45 Original language: English
3
ethtool -m works for Ethernet NICs, but how can the SFP+ module EEPROM be read on a Fibre Channel adapter driven by qla2xxx, so that a transceiver inventory tool can cover FC HBAs too?
With qla2xxx, a binary sfp attribute can be exposed under the FC host's sysfs path, such as /sys/devices/pci.../host7/sfp. This is a different access path from Ethernet ethtool -m.
Check whether that attribute exists for the actual adapter and driver, then rad and decode its bytes for inventory. The source requested inventory-tool integration and did not establish that every qla2xxx adapter exports a complete DOM map.
Comments 2
With qla2xxx, a binary
sfpattribute can be exposed under the FC host's sysfs path, such as/sys/devices/pci.../host7/sfp. This is a different access path from Ethernetethtool -m.Check whether that attribute exists for the actual adapter and driver, then rad and decode its bytes for inventory. The source requested inventory-tool integration and did not establish that every qla2xxx adapter exports a complete DOM map.