mlxsw: spectrum_acl: Split rehash work into chunks
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | mlxsw: spectrum_acl: Push rehash dw struct into rehash sub-structdrivers/ | +9 | 0 replies | |
| 2/14 | mlxsw: spectrum_acl: Don't migrate already migrated entrydrivers/ | +4 | 0 replies | |
| 3/14 | mlxsw: spectrum_acl: Introduce new rehash context struct and save hint_priv theredrivers/ | +12 | 0 replies | |
| 4/14 | mlxsw: spectrum_acl: Push rehash start/end code into separate functionsdrivers/ | +32 | 0 replies | |
| 5/14 | mlxsw: spectrum_acl: Push code start/end from mlxsw_sp_acl_tcam_vregion_migrate()drivers/ | +35 | 0 replies | |
| 6/14 | mlxsw: spectrum_acl: assign vregion->region by the newly created regiondrivers/ | +20 | 0 replies | |
| 7/14 | mlxsw: spectrum_acl: assign vchunk->chunk by the newly created chunkdrivers/ | +10 | 0 replies | |
| 8/14 | mlxsw: spectrum_acl: Rename variables in mlxsw_sp_acl_tcam_ventry_migrate()drivers/ | +7 | 0 replies | |
| 9/14 | mlxsw: spectrum_acl: Put this_is_rollback to rehash context structdrivers/ | +12 | 0 replies | |
| 10/14 | mlxsw: spectrum_acl: Put vchunk migrate start/end code into separate functionsdrivers/ | +32 | 0 replies | |
| 11/14 | mlxsw: spectrum_acl: Do rollback as another call to mlxsw_sp_acl_tcam_vchunk_migrate_all()drivers/ | +29 | 0 replies | |
| 12/14 | mlxsw: spectrum_acl: Allow to interrupt/continue rehash workdrivers/ | +62 | 0 replies | |
| 13/14 | mlxsw: spectrum_acl: Remember where to continue rehash migrationdrivers/ | +86 | 0 replies | |
| 14/14 | mlxsw: spectrum_acl: Make mlxsw_sp_acl_tcam_vregion_rehash() return voiddrivers/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 00/14] mlxsw: spectrum_acl: Split rehash work into chunks
Jiri says:
When rehash happens on a vregion with many rules and they are being migrated, it might take significant time to finish the job. During that time vregion->lock is taken which prevents rules from being added/deleted from the vregion.
Aim of this patchset is to allow to interrupt migration of rules during rehash, reschedule and give chance for rules to be added/deleted. Then continue migration in another execution of scheduled work.
Jiri Pirko (14):
mlxsw: spectrum_acl: Push rehash dw struct into rehash sub-struct
mlxsw: spectrum_acl: Don't migrate already migrated entry
mlxsw: spectrum_acl: Introduce new rehash context struct and save
hint_priv there
mlxsw: spectrum_acl: Push rehash start/end code into separate
functions
mlxsw: spectrum_acl: Push code start/end from
mlxsw_sp_acl_tcam_vregion_migrate()
mlxsw: spectrum_acl: assign vregion->region by the newly created
region
mlxsw: spectrum_acl: assign vchunk->chunk by the newly created chunk
mlxsw: spectrum_acl: Rename variables in
mlxsw_sp_acl_tcam_ventry_migrate()
mlxsw: spectrum_acl: Put this_is_rollback to rehash context struct
mlxsw: spectrum_acl: Put vchunk migrate start/end code into separate
functions
mlxsw: spectrum_acl: Do rollback as another call to
mlxsw_sp_acl_tcam_vchunk_migrate_all()
mlxsw: spectrum_acl: Allow to interrupt/continue rehash work
mlxsw: spectrum_acl: Remember where to continue rehash migration
mlxsw: spectrum_acl: Make mlxsw_sp_acl_tcam_vregion_rehash() return
void
.../mellanox/mlxsw/spectrum_acl_tcam.c | 411 ++++++++++++------ 1 file changed, 286 insertions(+), 125 deletions(-)
Signature · 1 line
2.20.1