Thread (13 messages) flat view 13 messages, 3 authors, 2022-09-16

Re: [PATCH net-next v12 5/6] net: dsa: mv88e6xxx: rmon: Use RMU for reading RMON data

From: Mattias Forsblad <hidden>
Date: 2022-09-16 06:37:56

On 2022-09-15 22:11, Florian Fainelli wrote:
On 9/15/22 07:36, Mattias Forsblad wrote:
quoted
Use the Remote Management Unit for efficiently accessing
the RMON data.

Signed-off-by: Mattias Forsblad <redacted>
Seems a bit wasteful to add a rmu_reg field for each statistics member when there are only 6 STATS_TYPE_PORT that could be read over RMU.

Maybe what you could do is that the offset in the "reg" member could be split into a lower half that is used to encore the existing offset, and you use the upper half to encode the RMU-offset.
As it's only three port statistics counter, I'll make a switch statement per Andrew suggestion. Thanks.

/Mattias

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help