[RFC PATCH] ethdev: add new API for enable/disable xstat counters by ID
Shani Peretz
shperetz at nvidia.com
Wed Jan 1 20:05:20 CET 2025
I understand what you say about the per queue statistics,
but note that we want to be able to enable/disable stat in general - the stat can be related to a specific queue, or a port, or else. but the PMD get the chance to disable the collection of it and save resources.
> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: Tuesday, 24 December 2024 19:19
> To: Shani Peretz <shperetz at nvidia.com>
> Cc: dev at dpdk.org; Aman Singh <aman.deep.singh at intel.com>; Dariusz
> Sosnowski <dsosnowski at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Bing Zhao <bingz at nvidia.com>; Ori Kam
> <orika at nvidia.com>; Suanming Mou <suanmingm at nvidia.com>; Matan Azrad
> <matan at nvidia.com>; NBU-Contact-Thomas Monjalon (EXTERNAL)
> <thomas at monjalon.net>; Ferruh Yigit <ferruh.yigit at amd.com>; Andrew
> Rybchenko <andrew.rybchenko at oktetlabs.ru>; Anatoly Burakov
> <anatoly.burakov at intel.com>
> Subject: Re: [RFC PATCH] ethdev: add new API for enable/disable xstat counters
> by ID
>
> External email: Use caution opening links or attachments
>
>
> On Mon, 23 Dec 2024 10:46:59 +0000
> Shani Peretz <shperetz at nvidia.com> wrote:
>
> > Sorry if it wasn't clear, in mlx5 there is limited number of counters, so if there
> are X counters and 2X queues, there won't be enough counters to get statistics
> for all queues at the same time.
> > In this case we thought the best approach would be to allow the user to
> choose which queues they want statistics from.
> > If the counters are exceeded, the user would have the option to disable the
> counter, thereby freeing up the resource for reuse elsewhere.
> >
>
> Ok, other hardware may have same issue.
> Why not do it per-queue (not the id stuff).
>
> Kind of related to the existing queue stat counters that need rework.
> The ixgbe has similar mapping problem.
>
> Let's solve this once across multiple devices.
More information about the dev
mailing list