Skip to content

ocp: Statistic Area offsets not handled as zero‑based per OCP 2.5 (09282023), 2.6, and 2.7 specifications #3184

@sfindley102892

Description

@sfindley102892

I want to confirm whether the ocp telemetry parser is expected to support OCP 2.6 / 2.7 fields.

From reviewing the current implementation, it seems the telemetry decode logic is based on the OCP 2.5r9 interpretation of the TELDF-13, TELDF-15 Statistic Area requirements ref: #2354. However, with OCP 2.5 (09282023), the spec says that TELDF Statistic Area fields are zero‑based offsets. This requirement continues into OCP 2.6 and 2.7.

In the current telemetry‑decoder code, the offsets are not treated as zero‑based values. Examples from plugins/ocp/ocp-telemetry-decode.c

// Data is present in the form of DWORDS, so multiplying with sizeof(DWORD)
stats_da_1_start_dw = (stats_da_1_start * SIZE_OF_DWORD);
stats_da_1_size_dw  = (stats_da_1_size  * SIZE_OF_DWORD);
stats_da_2_start_dw = (stats_da_2_start * SIZE_OF_DWORD);
stats_da_2_size_dw  = (stats_da_2_size  * SIZE_OF_DWORD);

According to OCP 2.5 (09282023) 2.6 and 2.7, these fields should be interpreted as zero‑based, but the decoder currently appears to apply the 2.5 rule set.

Questions:

  1. Is the telemetry parser expected to support OCP 2.6 / 2.7 compliance?
  2. If yes, is there a plan or timeline to update telemetry‑decoder handling of TELDF to use zero‑based offsets?
  3. If no, should we consider adding a version‑based decode path or updating these offset calculations?

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions