Thread (9 messages) 9 messages, 3 authors, 2021-10-14

Re: [dpdk-dev] [PATCH v2] drivers/net: remove queue xstats auto-fill flag

From: Andrew Rybchenko <hidden>
Date: 2021-09-30 13:45:03

On 9/30/21 4:00 PM, Ferruh Yigit wrote:
On 9/29/2021 7:38 AM, Andrew Rybchenko wrote:
quoted
On 9/28/21 8:10 PM, Stephen Hemminger wrote:
quoted
On Tue, 28 Sep 2021 19:48:54 +0300
Andrew Rybchenko [off-list ref] wrote:
quoted
Some drivers do not provide per-queue statistics. So, there is no point
to have these misleading zeros in xstats.

Fixes: f30e69b41f94 ("ethdev: add device flag to bypass auto-filled queue xstats")
Cc: stable@dpdk.org

Signed-off-by: Andrew Rybchenko <redacted>
Really?
It is useful to have zeros rather than random data there.
I guess there is a misunderstanding here. Auto-filling xstats is
an addition of per-queue basic statistics to xstats by ethdev
layer. It makes sense to do it if and only if there is some
sensible data there.

There is a related deprecation notice saying that per-queue
stats should be removed from basic stats since per-queue
stats should be provided by xstats API natively.

Basically RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS means
that corresponding driver is not ready vs the deprecation notice.
So, I want to clean it up to see not yet ready drivers only.
As you said, 'RTE_ETH_DEV_AUTOFILL_QUEUE_XSTATS' flag set by driver means,
driver is not ready on representing queue stats in xstats and ethdev layer is
filling it automatically from basic stats.

First we should wait for drivers to implement it, later clean queue stats from
basic stats and remove the flag.

I am not sure if we can remove the deprecation notice in this release, but agree
to add a deadline for the drivers, which can be 22.11.
I'm going to cleanup deprecation. I don't touch it in the
patch. I just want to cleanup list of drivers which
require attention/changes. Drivers covered here do not
provide per-queue stats in basic stats. So, there is no
point to set the flag to show it in xstats.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help