]> 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)
commit452d7ca3c02673d8d2da2ba9ad6935e7438d9169
tree7df084971142cb3b026829b463a8fd9f0cb0714c
parent0c823e3a74c4d0be496a4f423fc598608c61d534
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