From: fengchengwen <fengchengwen@huawei.com>
To: Bruce Richardson <bruce.richardson@intel.com>,
Stephen Hemminger <stephen@networkplumber.org>
Cc: "Morten Brørup" <mb@smartsharesystems.com>,
thomas@monjalon.net, dev@dpdk.org, andrew.rybchenko@oktetlabs.ru
Subject: Re: [PATCH v2 2/2] ethdev: add telemetry endpoint for list names
Date: Fri, 22 May 2026 08:42:15 +0800 [thread overview]
Message-ID: <757fc51c-624d-4a05-af65-8862fb3e1287@huawei.com> (raw)
In-Reply-To: <ag8oZodLjw0cp5Kf@bricha3-mobl1.ger.corp.intel.com>
On 5/21/2026 11:44 PM, Bruce Richardson wrote:
> On Thu, May 21, 2026 at 04:21:59PM +0100, Bruce Richardson wrote:
>> On Thu, May 21, 2026 at 07:37:16AM -0700, Stephen Hemminger wrote:
>>> On Thu, 21 May 2026 14:40:47 +0200 Morten Brørup
>>> <mb@smartsharesystems.com> wrote:
>>>
>>>>> From: fengchengwen [mailto:fengchengwen@huawei.com] Sent: Thursday,
>>>>> 21 May 2026 14.25
>>>>>
>>>>> Thanks for the feedback.
>>>>>
>>>>> I intend to keep the current dict format. This concise ID-name
>>>>> mapping is quite helpful and easy to read especially when there are
>>>>> massive ports, which is exactly the main purpose why I submitted
>>>>> this patch.
>>>>>
>>>>> In my opinion, adopting OData-style query would require
>>>>> architecture- level refactoring of telemetry framework, which is
>>>>> way too heavy for this simple requirement.
>>>>
>>>> Agree. Refactoring the telemetry framework is different task, not
>>>> related to this patch.
>>>>
>>>>> For complex query demands, we can implement them by extending the
>>>>> upper-layer Python telemetry script instead.
>>>>>
>>>>> So I suggest we keep this simple form here.
>>>>
>>>> If it is generally acceptable for DPDK telemetry that a request for a
>>>> list does not return a list type, but returns an object type with
>>>> "index": "value" fields instead, then Series-acked-by: Morten Brørup
>>>> <mb@smartsharesystems.com>
>>>
>>> It is necessary since port list may have holes due to hotplug or the
>>> ownership API. It would be good to have a more complete query function
>>> that returns more about each ethdev. I wouldn't worry about the size
>>> of the response. This is JSON and it is meant to be read by scripts not
>>> directly by humans.
>>
>> That's where I think we have a difference - if the output is meant to be
>> read by scripts, we should not need extra commands like this, since the
>> information is already available via existing commands. The only
>> compelling reason that I can see for adding a new command to return a set
>> of ethdev names is for human interactive use.
>>
>> Personally, I think the output should be just used by other scripts, but
>> it does appear that this quick-and-dirty telemetry script is being used
>> extensively for human interactive querying. Therefore, I'm working on
>> extending the script to make it more useful for such cases. I'd prefer to
>> add the extra smarts into the script rather than seeing a proliferation
>> of endpoints providing the same data in different formats.
>>
> Here [1] is my proposed generalised solution, quickly prototyped with copilot,
> composed of two parts: firstly, support for querying values across a range
> of ports using a foreach command, and then secondly, support for aliases to
> make the use of those foreach commands easier on the user. It's not
> intended as a mergable set of patches as-is, but rather to demonstrate how
> we might be able to come up with a more general solution (that keeps to the
> DRY principle) entirely within the python script rather than extending the
> C code.
Great
With the newly introduced FOREACH compound query capability, the port ID and
device name mapping can be fully acquired by existing telemetry commands.
The new command satisfies my original requirement perfectly.
>
> /Bruce
>
> [1] https://patches.dpdk.org/project/dpdk/list/?series=38197
>
prev parent reply other threads:[~2026-05-22 0:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-20 3:56 [PATCH 0/2] enhance telemetry list endpoint with device name Chengwen Feng
2026-05-20 3:56 ` [PATCH 1/2] dmadev: include device name in telemetry list output Chengwen Feng
2026-05-20 15:03 ` Stephen Hemminger
2026-05-20 3:56 ` [PATCH 2/2] ethdev: " Chengwen Feng
2026-05-20 5:40 ` [PATCH 0/2] enhance telemetry list endpoint with device name Morten Brørup
2026-05-20 7:31 ` fengchengwen
2026-05-20 7:49 ` Bruce Richardson
2026-05-20 14:54 ` Stephen Hemminger
2026-05-20 9:38 ` [PATCH v2 0/2] Add list names telemetry endpoint Chengwen Feng
2026-05-20 9:38 ` [PATCH v2 1/2] dmadev: add telemetry endpoint for list names Chengwen Feng
2026-05-20 9:38 ` [PATCH v2 2/2] ethdev: " Chengwen Feng
2026-05-20 13:29 ` Morten Brørup
2026-05-20 14:58 ` Bruce Richardson
2026-05-21 12:24 ` fengchengwen
2026-05-21 12:40 ` Morten Brørup
2026-05-21 14:37 ` Stephen Hemminger
2026-05-21 15:21 ` Bruce Richardson
2026-05-21 15:44 ` Bruce Richardson
2026-05-22 0:42 ` fengchengwen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=757fc51c-624d-4a05-af65-8862fb3e1287@huawei.com \
--to=fengchengwen@huawei.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=mb@smartsharesystems.com \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.