Thread (5 messages) flat view 5 messages, 3 authors, 2024-06-19

Re: [PATCH v0] net: dsa: mv88e6xxx: Add FID map cache

From: Aryan Srivastava <hidden>
Date: 2024-06-19 23:17:34
Also in: lkml

Hi Andrew,
On Mon, 2024-06-10 at 14:23 +0200, Andrew Lunn wrote:
On Mon, Jun 10, 2024 at 05:07:23PM +1200, Aryan Srivastava wrote:
quoted
Add a cached FID bitmap. This mitigates the need to
walk all VTU entries to find the next free FID.

Walk VTU once, then store read FID map into bitmap. Use
and manipulate this bitmap from now on, instead of re-reading
HW for the FID map.

The repeatedly VTU walks are costly can result in taking ~40 mins
if ~4000 vlans are added. Caching the FID map reduces this time
to <2 mins.
How long does the first walk take? Rather than having fid_populated,
i
wounder if the walk should just be done in mv88e6xxx_vtu_setup() or
mv88e6xxx_atu_setup().

        Andrew
I agree, will implement this. The first walk does not take long, but
would be better served in the setup.

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