Page MenuHomeFreeBSD

sfxge: implement SIOCGI2C to read infromation from phy modules
ClosedPublic

Authored by arybchik on Feb 10 2016, 12:06 PM.

Details

Summary

The IOCTL is used by 'ifconfig -v' to show SFP+/QSFP+ information
including inventory information and dianostics (temperature, light
levels, voltage etc).

Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days

Test Plan

Build tested. Driver loaded/unloaded.
ifconfig -v check on 5xxx/6xxx with SFP+ tranceiver and 7xxx NICs with
SFP+ and QSFP+.

sfxge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

options=ec07ab<RXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:0f:53:21:17:20
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (10Gbase-SR <full-duplex,rxpause,txpause>)
status: active
plugged: SFP/SFP+/SFP28 10G Base-SR (LC)
vendor: Intel Corp PN: AFBR-703SDZ-IN2 SN: AD1148A02NS DATE: 2011-12-14
module temperature: 54.60 C Voltage: 3.31 Volts
RX: 0.20 mW (-6.98 dBm) TX: 0.55 mW (-2.55 dBm)

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

arybchik retitled this revision from to sfxge: implement SIOCGI2C to read infromation from phy modules.Feb 10 2016, 12:06 PM
arybchik updated this object.
arybchik edited the test plan for this revision. (Show Details)
arybchik added reviewers: gnn, philip, np, bz, melifaro.
arybchik updated this revision to Diff 13177.
arybchik edited the test plan for this revision. (Show Details)Feb 10 2016, 12:07 PM
gnn edited edge metadata.Feb 10 2016, 12:08 PM
gnn accepted this revision.
This revision is now accepted and ready to land.Feb 10 2016, 12:08 PM
melifaro edited edge metadata.Feb 10 2016, 12:10 PM
melifaro accepted this revision.

Great news, thanks for implementing that!

This revision was automatically updated to reflect the committed changes.