]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-spectrum_acl-Don-t-take-rtnl-mutex-for-region-rehash'
authorDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 04:25:30 +0000 (20:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 04:25:30 +0000 (20:25 -0800)
commit3754b14b5b3a9b9c2fc8e27b302f55e2cd82044a
tree21016fbace69810785b908d634ebbd23002a44ce
parente6b8a6faf763fd87fd76bfcb4c01cd3f4fb94cc5
parentb5a46bcada8b45dffacc1e8630ef746af1d89713
Merge branch 'mlxsw-spectrum_acl-Don-t-take-rtnl-mutex-for-region-rehash'

Ido Schimmel says:

====================
mlxsw: spectrum_acl: Don't take rtnl mutex for region rehash

Jiri says:

During region rehash, a new region is created with a more optimized set
of masks (ERPs). When transitioning to the new region, all the rules
from the old region are copied one-by-one to the new region. This
transition can be time consuming and currently done under RTNL lock.

In order to remove RTNL lock dependency during region rehash, introduce
multiple smaller locks guarding dedicated structures or parts of them.
That is the vast majority of this patchset. Only patch #1 is simple
cleanup and patches 12-15 are improving or introducing new selftests.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>