safchain / ethtool

A simple ethtool "like" library for GO
Apache License 2.0
116 stars 69 forks source link

Support for parsing DDM #19

Open icb- opened 6 years ago

icb- commented 6 years ago

I would like to get access to parsed SFF-8472 style DDM from NICs (and optics) that support it. You can already get the raw, unprocessed binary data from ModuleEeprom(intf). Parsing most of the data is relatively straightforward (mostly some uint8, uint16, some fixed length strings, and a bunch of enums) but several of the fields are in odd units, like optic temperature in 1/256 °C, or rx/tx power in 100s of nanowatts (when dBm is much more common.)

I think this is the right place to do that parsing, rather than pushing it to anything that uses this module.

lst123 commented 1 year ago

I would like to get access to parsed SFF-8472 style DDM from NICs (and optics) that support it. You can already get the raw, unprocessed binary data from ModuleEeprom(intf). Parsing most of the data is relatively straightforward (mostly some uint8, uint16, some fixed length strings, and a bunch of enums) but several of the fields are in odd units, like optic temperature in 1/256 °C, or rx/tx power in 100s of nanowatts (when dBm is much more common.)

I think this is the right place to do that parsing, rather than pushing it to anything that uses this module.

Hello. Could you please tell me how to parse the raw data from ModuleEeprom correctly?