]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: spectrum_acl: Allow to interrupt/continue rehash work
authorJiri Pirko <jiri@mellanox.com>
Thu, 28 Feb 2019 06:59:25 +0000 (06:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 05:44:11 +0000 (21:44 -0800)
commitc9c9af91f1d9a636aecc55302c792538e549a430
tree7df084971142cb3b026829b463a8fd9f0cb0714c
parent843500518509128a935edab96bd8efef7c54669e
mlxsw: spectrum_acl: Allow to interrupt/continue rehash work

Currently, migration of vregions with many entries may take long time
during which insertions and removals of the rules are blocked
due to wait to acquire vregion->lock.

To overcome this, allow to interrupt and continue rehash work according
to the set credits - number of rules to migrate.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c