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:
- Is the telemetry parser expected to support OCP 2.6 / 2.7 compliance?
- If yes, is there a plan or timeline to update telemetry‑decoder handling of TELDF to use zero‑based offsets?
- If no, should we consider adding a version‑based decode path or updating these offset calculations?
References:
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.cAccording 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:
References: