Aquantia / AQtion

Aquantia AQC multigigabit NIC linux driver (atlantic) - development preview
https://www.aquantia.com
87 stars 30 forks source link

Feature Request: I2C/SMBus support for getting transceiver information #61

Open laf0rge opened 3 months ago

laf0rge commented 3 months ago

This Linux driver does not expose the SMBus/I2C via the standard linux kernel features, so ethtool --module-info is not supported.

On the other hand, it seems the open source DPDK driver released by Aquantia does support this feature, so it would be great if this could be added to the Linux driver, too.

The purpoose would be to detect the SFP transceiver type used, as well as the laser output power, receive power level, alarms, etc. - an example output of this is seen at https://docs.nvidia.com/networking-ethernet-software/cumulus-linux-40/Monitoring-and-Troubleshooting/Troubleshooting-Network-Interfaces/Monitoring-Interfaces-and-Transceivers-Using-ethtool/#monitor-switch-port-sfpqsfp-hardware-information-using-ethtool

AFAICT, all that is needed for making this wealth of information available is to expose I2C/SMbus operations in the driver - all the decoding / parsing is generic and implemented by higher layer tools.