[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231213134803.i2kkeky2s25r47mz@skbuf>
Date: Wed, 13 Dec 2023 15:48:03 +0200
From: Vladimir Oltean <olteanv@...il.com>
To: davem@...emloft.net, kuba@...nel.org
Cc: andrew@...n.ch, Tobias Waldekranz <tobias@...dekranz.com>,
f.fainelli@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH v3 net-next 0/8] net: dsa: mv88e6xxx: Add "eth-mac" and
"rmon" counter group support
On Mon, Dec 11, 2023 at 11:33:38PM +0100, Tobias Waldekranz wrote:
> The majority of the changes (2/8) are about refactoring the existing
> ethtool statistics support to make it possible to read individual
> counters, rather than the whole set.
>
> 4/8 tries to collect all information about a stat in a single place
> using a mapper macro, which is then used to generate the original list
> of stats, along with a matching enum. checkpatch is less than amused
> with this construct, but prior art exists (__BPF_FUNC_MAPPER in
> include/uapi/linux/bpf.h, for example).
>
> To support the histogram counters from the "rmon" group, we have to
> change mv88e6xxx's configuration of them. Instead of counting rx and
> tx, we restrict them to rx-only. 6/8 has the details.
>
> With that in place, adding the actual counter groups is pretty
> straight forward (5,7/8).
>
> Tie it all together with a selftest (8/8).
I plan to test and review this. Please do not merge it yet.
Powered by blists - more mailing lists