summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAryan Srivastava <aryan.srivastava@alliedtelesis.co.nz>2024-10-07 10:29:05 +1300
committerJakub Kicinski <kuba@kernel.org>2024-10-08 15:30:55 -0700
commitada5c3229b32e48f4c8e09b6937e5ad98cc3675f (patch)
tree896e1020207167ebef4cac58f49bde91e26bac77 /include
parent42b2331081178785d50d116c85ca40d728b48291 (diff)
net: dsa: mv88e6xxx: Add FID map cache
Add a cached FID bitmap. This mitigates the need to walk all VTU entries to find the next free FID. When flushing the VTU (during init), zero the FID bitmap. Use and manipulate this bitmap from now on, instead of reading HW for the FID map. The repeated VTU walks are costly and can take ~40 mins if ~4000 vlans are added. Caching the FID map reduces this time to <2 mins. Signed-off-by: Aryan Srivastava <aryan.srivastava@alliedtelesis.co.nz> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20241006212905.3142976-1-aryan.srivastava@alliedtelesis.co.nz Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions