]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
* Add new net/sff8436.h containing constants used to access
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 21 Aug 2014 17:54:42 +0000 (17:54 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 21 Aug 2014 17:54:42 +0000 (17:54 +0000)
commitc59adfc6a57e462df6621326635c2fe8f2582353
tree92e5f19cd35d098d80e03add4ae217b5035653ea
parent3a2e3fe269bbe48e3e41b44fbad16ced29bcba0b
* Add new net/sff8436.h containing constants used to access
  QSFP+ data via i2c inteface. These constants has been taken
  from SFF-8436 "QSFP+ 10 Gbs 4X PLUGGABLE TRANSCEIVER" standard
  rev 4.8.
* Add support for printing QSFP+ information from 40G NICs
  such as Chelsio T5.

This commit does not contain ioctl changes necessary for this
functionality work, there will be another commit soon.

Example:
cxl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,.....>
        ether 00:07:43:28:ad:08
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet 40Gbase-LR4 <full-duplex>
        status: active
        plugged: QSFP+ 40GBASE-LR4 (MPO Parallel Optic)
        vendor: OEM PN: OP-QSFP-40G-LR4 SN: 20140318001 DATE: 2014-03-18
        module temperature: 64.06 C voltage: 3.26 Volts
        lane 1: RX: 0.47 mW (-3.21 dBm) TX: 2.78 mW (4.46 dBm)
        lane 2: RX: 0.20 mW (-6.94 dBm) TX: 2.80 mW (4.47 dBm)
        lane 3: RX: 0.18 mW (-7.38 dBm) TX: 2.79 mW (4.47 dBm)
        lane 4: RX: 0.90 mW (-0.45 dBm) TX: 2.80 mW (4.48 dBm)

Tested on: Chelsio T5
Tested on: Mellanox/Huawei passive/active cables/transceivers.
MFC after: 2 weeks
Sponsored by: Yandex LLC
sbin/ifconfig/sfp.c
sys/net/sff8436.h [new file with mode: 0644]
sys/net/sff8472.h