Hoi folks,

I took a stab at implementing optical plugin monitoring with SFF8472 compatible interfaces, using DPDK's rte_eth_dev_get_module_eeprom().
Take a look at: https://gerrit.fd.io/r/c/vpp/+/43544

Quick demo:
DBGvpp# show dpdk transceiver ?
  show dpdk transceiver                    show dpdk transceiver [<interface>] [eeprom] [module] [diag] [verbose]

DBGvpp# show dpdk transceiver TenGigabitEthernet130/0/0 module diag verbose
Interface: TenGigabitEthernet130/0/0
  SFF-8472 Module Information:
    Identifier: 0x03 (SFP/SFP+/SFP28)
    Extended Identifier: 0x04
    Connector: 0x07 (LC)
    Encoding: 0x06 (64B/66B)
    Nominal Bit Rate: 10300 Mbps
    Length (SMF): 20 km
    Length (SMF): 20000 m
    Vendor Name: STARRY
    Vendor OUI: 00:1b:21
    Vendor Part Number: SFP-10G-LR-20
    Vendor Serial Number: 2024082600001
    Vendor Revision: A
    Wavelength: 8224 nm
    Date Code: 240902
    Link Codes: 0x00
    Options: 0x3a0000
  SFF-8472 Diagnostic Monitoring:
    Current Values:
      Temperature: 40.52 °C
      Supply Voltage: 3.3205 V
      TX Bias Current: 39.19 mA
      TX Average Power: .7712 mW (-1.13 dBm)
      RX Average Power: .6724 mW (-1.72 dBm)
    Alarm Thresholds:
      Temperature High: 90.00 °C, Low: -50.00 °C
      Voltage High: 3.7999 V, Low: 2.7999 V
      Bias Current High: 110.00 mA, Low: 1.00 mA
      TX Power High: 2.5118 mW (4.00 dBm), Low: .1258 mW (-9.00 dBm)
      RX Power High: 1.9952 mW (3.00 dBm), Low: .0078 mW (-21.08 dBm)
    Warning Thresholds:
      Temperature High: 85.00 °C, Low: -40.00 °C
      Voltage High: 3.7000 V, Low: 2.9142 V
      Bias Current High: 100.00 mA, Low: 2.00 mA
      TX Power High: 1.9952 mW (3.00 dBm), Low: .1584 mW (-8.00 dBm)
      RX Power High: 1.5848 mW (2.00 dBm), Low: .0100 mW (-20.00 dBm)

I think I got most of it right, and I integrated with vnet/ethernet/sfp.[ch] and fixed a typo there as well.

If somebody can review and offer feedback, I will continue with SFF8636 for QSFP+/QSFP28 and other multi-channel optics.

groet,
Pim
--

--
Pim van Pelt <p...@ipng.ch>
PBVP1-RIPE https://ipng.ch/

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#26262): https://lists.fd.io/g/vpp-dev/message/26262
Mute This Topic: https://lists.fd.io/mt/114694432/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/14379924/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to