Thread (17 messages) flat view 17 messages, 5 authors, 2012-12-03

Re: Optics (SFP) monitoring on ixgbe and igbe

From: Ben Hutchings <hidden>
Date: 2012-11-09 15:08:36

On Thu, 2012-11-08 at 01:39 +0100, Aurélien wrote:
On Wed, Nov 7, 2012 at 8:58 PM, Ben Hutchings [off-list ref] wrote:
quoted
On Wed, 2012-11-07 at 13:27 +0100, Aurélien wrote:

We just added the ETHTOOL_GMODULEINFO and ETHTOOL_GMODULEEEPROM
interface for this purpose.  The diagnostics obviously aren't really an
EEPROM but I don't think that matters.

These drivers should report a type of ETH_MODULE_SFF_8472 (assuming a
module is present) and expose an 'EEPROM' with the real EEPROM in the
first 256 bytes and the diagnostic registers in the next 256 bytes.

Decoding of the diagnostic registers can be done in ethtool itself.
Hi Ben,

Thanks for this reply.

I did not see these interfaces in my searches, but from what I gather
from the code, the missing part is the actual decoding of the data in
ethtool.
[...]

No, the driver also needs to implement ethtool_ops::get_module_info and
ethtool_ops::get_module_eeprom.  But those should be quite easy to do.

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help