]> git.baikalelectronics.ru Git - kernel.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)
commite2e01ade8e86c897e8fac82e7ab8968261f441b5
tree7df084971142cb3b026829b463a8fd9f0cb0714c
parentdf63e6c1794d96b2071f8a80b495d9cd8c6bab37
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