Re: [RFC net-next PATCH 0/3] net: dsa: mv88e6xxx: Add RMU support
From: Mattias Forsblad <hidden>
Date: 2022-08-19 05:14:32
On 2022-08-18 14:31, Andrew Lunn wrote:
On Thu, Aug 18, 2022 at 12:29:21PM +0200, Mattias Forsblad wrote:quoted
The Marvell SOHO switches have the ability to receive and transmit Remote Management Frames (Frame2Reg) to the CPU through the switch attached network interface. These frames is handled by the Remote Management Unit (RMU) in the switch.Please try to avoid all the additional whitespace your editor/mailer has added.quoted
Next step could be to implement single read and writes but we've found that the gain to transfer this to RMU is neglible.I agree that RMON is a good first step. Dumping the ATU and VTU would also make a lot of sense. For general register access, did you try combining multiple writes and one read into an RMU packet? At least during initial setup, i suspect there are some code flows which follow that pattern with lots of writes. And a collection of read/modify/write might benefit. Andrew
In another stack I've used aggregated writes with great improvements so it that is something that could be investigated. One large oversight when implementing RMU in HW there is no operation for masked writes which makes it a bit trickier. It would be great if there was a transaction-based API which would easier map for aggregated accesses. Oltean mentioned something about qck8k that I'll have a look into.