Re: [PATCH v0] net: dsa: mv88e6xxx: Add FID map cache
From: Aryan Srivastava
Date: Wed Jun 19 2024 - 19:17:46 EST
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:
> > 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.