[PATCH 0/2] enhance telemetry list endpoint with device name
fengchengwen
fengchengwen at huawei.com
Wed May 20 09:31:57 CEST 2026
On 5/20/2026 1:40 PM, Morten Brørup wrote:
>> From: Chengwen Feng [mailto:fengchengwen at huawei.com]
>> Sent: Wednesday, 20 May 2026 05.57
>>
>> Currently, the /dmadev/list and /ethdev/list telemetry endpoints return
>> only integer IDs, making it hard to identify devices. This series
>> changes
>> both to output strings in "ID NAME" format for better usability.
>
> For machine reading of the JSON output, it would be better returning an object with an integer and a string field, {ID, "NAME"}.
The TEL_DICT could do {"ID", "NAME"}, which like:
"/ethdev/list": {
"0": "0000:7d:00.0",
"1": "0000:7d:00.1"
}
Maybe we could add one TEL_INT_DICT which is int-value pairs, we may get:
"/ethdev/list": {
0: "0000:7d:00.0",
1: "0000:7d:00.1"
}
I prefer the first one, However, the capacity is reduced from 512 (RTE_TEL_MAX_ARRAY_ENTRIES) to 256 (RTE_TEL_MAX_DICT_ENTRIES), but I think it is enough.
What's your opinion?
>
>
More information about the dev
mailing list