Hoi,

On 15.08.2025 22:36, Damjan Marion via lists.fd.io wrote:
Can do. Take a look at https://gerrit.fd.io/r/c/vpp/+/43550 which is the vnet part. I agree it's a bit nicer to have this in one place, as other interface types (eg mlnx if it's running in rdma mode) may be able to
reuse it.

I tested this gerrit by hacking together a 'show interface transceiver <itf>' in vnet/interface_cli.c, and that correctly dumps the EEPROM of DPDK interfaces, and ignores others because the .read_eeprom.function isn't set. I'll rebase the SFF8472 parser on this one once it's merged.
I've rebased and completed https://gerrit.fd.io/r/c/vpp/+/43544 please review.

The gerrit now supports all four EEPROM layouts in common use - SFF8079 (1G/10G), SFF8472 (10G + DDM), SFF8436 (older QSFP), SFF8636 (100G and onwards).

A test from a VPP instance with 100G CWDM4, 40G QSFP+, 25G DAC, 10G SFP+ 1310nm, 10G BiDi 1270nm TX, 10G CWDM 1350nm:

DBGvpp# show interface transceiver module diag verbose
Interface: HundredGigabitEthernet3/0/0
  EEPROM Type: 0x03 (SFF-8636)
  Module Base Information:
    Vendor Name: FINISAR CORP.
    Vendor OUI: 00:90:65
    Vendor Part Number: FTLC1157RGPL6-FB
    Vendor Serial Number: X24A15P
    Identifier: 0x11 (QSFP28)
    Extended Identifier: 0xcc
    Connector: 0x07 (LC)
    Encoding: 0x07 (256B/257B)
    Nominal Bit Rate: 25500 Mbps
    Length (SMF): 2 km
    Vendor Revision: A0
    Wavelength: 1301.000 nm
    Date Code: 190826
  Module Diagnostics:
    Current Values:
      Temperature: 48.64 °C
      Supply Voltage: 3.2638 V
      Lane 1:
        TX Bias Current: 43.05 mA
        TX Average Power: 1.2763 mW (1.06 dBm)
        RX Average Power: .0001 mW (-40.00 dBm)
      Lane 2:
        TX Bias Current: 64.82 mA
        TX Average Power: 1.1858 mW (.74 dBm)
        RX Average Power: .0001 mW (-40.00 dBm)
      Lane 3:
        TX Bias Current: 62.95 mA
        TX Average Power: 1.2458 mW (.95 dBm)
        RX Average Power: .0001 mW (-40.00 dBm)
      Lane 4:
        TX Bias Current: 65.11 mA
        TX Average Power: 1.1387 mW (.56 dBm)
        RX Average Power: .0001 mW (-40.00 dBm)
    Alarm Thresholds:
      Temperature High: 58.00 °C, Low: 10.00 °C
      Voltage High: 3.6300 V, Low: 2.9700 V
      Bias Current High: 77.00 mA, Low: 13.00 mA
      TX Power High: 3.5481 mW (5.50 dBm), Low: .1585 mW (-8.00 dBm)
      RX Power High: 2.2387 mW (3.50 dBm), Low: .0251 mW (-16.00 dBm)
    Warning Thresholds:
      Temperature High: 53.00 °C, Low: 15.00 °C
      Voltage High: 3.4650 V, Low: 3.1350 V
      RX Power High: 1.7783 mW (2.50 dBm), Low: .0631 mW (-12.00 dBm)
Interface: HundredGigabitEthernet3/0/1
  EEPROM Type: 0x04 (SFF-8436)
  Module Base Information:
    Vendor Name: FS
    Vendor OUI: 00:00:00
    Vendor Part Number: QSFP-SR4-40G
    Vendor Serial Number: G2002066593
    Identifier: 0x0d (QSFP+)
    Extended Identifier: 0x00
    Connector: 0x0c (MPO 1x12 Parallel Optic)
    Encoding: 0x03 (NRZ)
    Nominal Bit Rate: 10300 Mbps
    Length (SMF): 15000 m
    Length (OM2 50um): 800 m
    Length (OM1 62.5um): 300 m
    Vendor Revision: 1A
    Wavelength: 850.000 nm
    Date Code: 200723
  Module Diagnostics:
    Current Values:
      Temperature: 31.75 °C
      Supply Voltage: 3.2730 V
      Lane 1:
        TX Bias Current: 6.37 mA
        TX Average Power: .5105 mW (-2.92 dBm)
        RX Average Power: .0001 mW (-40.00 dBm)
      Lane 2:
        TX Bias Current: 6.32 mA
        TX Average Power: .5611 mW (-2.51 dBm)
        RX Average Power: .0001 mW (-40.00 dBm)
      Lane 3:
        TX Bias Current: 6.40 mA
        TX Average Power: .5268 mW (-2.78 dBm)
        RX Average Power: .0001 mW (-40.00 dBm)
      Lane 4:
        TX Bias Current: 6.29 mA
        TX Average Power: .5819 mW (-2.35 dBm)
        RX Average Power: .0001 mW (-40.00 dBm)
    Alarm Thresholds:
      Temperature High: 80.00 °C, Low: -10.00 °C
      Voltage High: 3.6000 V, Low: 3.0000 V
      Bias Current High: 14.00 mA, Low: 0.00 mA
      TX Power High: 2.1877 mW (3.40 dBm), Low: .1445 mW (-8.40 dBm)
      RX Power High: 2.1877 mW (3.40 dBm), Low: .0251 mW (-16.00 dBm)
    Warning Thresholds:
      Temperature High: 75.00 °C, Low: -5.00 °C
      Voltage High: 3.5000 V, Low: 3.1000 V
      RX Power High: 1.7378 mW (2.40 dBm), Low: .0316 mW (-15.00 dBm)
Interface: TenGigabitEthernet5/0/0
  EEPROM Type: 0x01 (SFF-8079)
  Module Base Information:
    Vendor Name: OEM
    Vendor OUI: 00:02:c9
    Vendor Part Number: NVOC-25G-DAC0.5M
    Vendor Serial Number: NVOC240723004
    Identifier: 0x03 (SFP/SFP+/SFP28)
    Extended Identifier: 0x04
    Connector: 0x21 (Copper pigtail)
    Encoding: 0x00 (unknown 0x0)
    Nominal Bit Rate: 25500 Mbps
    Length (Copper/OM3): 1 m
    Date Code: 240723
  Module Diagnostics: not availalbe
Interface: TenGigabitEthernet130/0/0
  EEPROM Type: 0x02 (SFF-8472)
  Module Base Information:
    Vendor Name: STARRY
    Vendor OUI: 00:1b:21
    Vendor Part Number: SFP-10G-LR-20
    Vendor Serial Number: 2024082600001
    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 Revision: A
    Wavelength: 1310 nm
    Date Code: 240902
  Module Diagnostics:
    Current Values:
      Temperature: 41.35 °C
      Supply Voltage: 3.3205 V
      TX Bias Current: 39.58 mA
      TX Average Power: .7754 mW (-1.10 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)
Interface: TenGigabitEthernet130/0/1
  EEPROM Type: 0x02 (SFF-8472)
  Module Base Information:
    Vendor Name: STARRY
    Vendor OUI: 00:1b:21
    Vendor Part Number: SFP-10G-LR-20
    Vendor Serial Number: 2024082600002
    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 Revision: A
    Wavelength: 1310 nm
    Date Code: 240902
  Module Diagnostics:
    Current Values:
      Temperature: 39.47 °C
      Supply Voltage: 3.3069 V
      TX Bias Current: 36.56 mA
      TX Average Power: .8053 mW (-.94 dBm)
      RX Average Power: .6715 mW (-1.73 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)
Interface: TenGigabitEthernet130/0/2
  EEPROM Type: 0x02 (SFF-8472)
  Module Base Information:
    Vendor Name: STARRY
    Vendor OUI: 00:1b:21
    Vendor Part Number: SFP-10G-CW20-35
    Vendor Serial Number: 2024082600037
    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 Revision: A
    Wavelength: 1350 nm
    Date Code: 240904
  Module Diagnostics:
    Current Values:
      Temperature: 42.31 °C
      Supply Voltage: 3.2726 V
      TX Bias Current: 39.84 mA
      TX Average Power: 2.4320 mW (3.86 dBm)
      RX Average Power: 0.0000 mW (-40.00 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: 6.3095 mW (8.00 dBm), Low: .3981 mW (-4.00 dBm)
      RX Power High: 1.9952 mW (3.00 dBm), Low: .0077 mW (-21.14 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: 5.0117 mW (7.00 dBm), Low: .5011 mW (-3.00 dBm)
      RX Power High: 1.5848 mW (2.00 dBm), Low: .0100 mW (-20.00 dBm)
Interface: TenGigabitEthernet130/0/3
  EEPROM Type: 0x02 (SFF-8472)
  Module Base Information:
    Vendor Name: STARRY
    Vendor OUI: 00:1b:21
    Vendor Part Number: SFP-10G-BX20-U23
    Vendor Serial Number: 2024082600023
    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 Revision: A
    Wavelength: 1270 nm
    Date Code: 240904
  Module Diagnostics:
    Current Values:
      Temperature: 41.43 °C
      Supply Voltage: 3.2727 V
      TX Bias Current: 34.45 mA
      TX Average Power: 1.2793 mW (1.07 dBm)
      RX Average Power: .0001 mW (-40.00 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: 5.0118 mW (7.00 dBm), Low: .1995 mW (-7.00 dBm)
      RX Power High: 1.9952 mW (3.00 dBm), Low: .0199 mW (-17.01 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: 3.9810 mW (6.00 dBm), Low: .2511 mW (-6.00 dBm)
      RX Power High: 1.5848 mW (2.00 dBm), Low: .0250 mW (-16.02 dBm)


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 (#26270): https://lists.fd.io/g/vpp-dev/message/26270
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