Skip to content

mlxsw: spectrum_acl: Split rehash work into chunks

Ido Schimmel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14mlxsw: spectrum_acl: Push rehash dw struct into rehash sub-structdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+9 -70 replies
2/14mlxsw: spectrum_acl: Don't migrate already migrated entrydrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+4 -00 replies
3/14mlxsw: spectrum_acl: Introduce new rehash context struct and save hint_priv theredrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+12 -40 replies
4/14mlxsw: spectrum_acl: Push rehash start/end code into separate functionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+32 -90 replies
5/14mlxsw: spectrum_acl: Push code start/end from mlxsw_sp_acl_tcam_vregion_migrate()drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+35 -390 replies
6/14mlxsw: spectrum_acl: assign vregion->region by the newly created regiondrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+20 -220 replies
7/14mlxsw: spectrum_acl: assign vchunk->chunk by the newly created chunkdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+10 -80 replies
8/14mlxsw: spectrum_acl: Rename variables in mlxsw_sp_acl_tcam_ventry_migrate()drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+7 -70 replies
9/14mlxsw: spectrum_acl: Put this_is_rollback to rehash context structdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+12 -70 replies
10/14mlxsw: spectrum_acl: Put vchunk migrate start/end code into separate functionsdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+32 -110 replies
11/14mlxsw: spectrum_acl: Do rollback as another call to mlxsw_sp_acl_tcam_vchunk_migrate_all()drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+29 -460 replies
12/14mlxsw: spectrum_acl: Allow to interrupt/continue rehash workdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+62 -200 replies
13/14mlxsw: spectrum_acl: Remember where to continue rehash migrationdrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+86 -50 replies
14/14mlxsw: spectrum_acl: Make mlxsw_sp_acl_tcam_vregion_rehash() return voiddrivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c+4 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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