Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 00/15] mlxsw: spectrum_acl: Don't take rtnl mutex for region rehash
@ 2019-02-24  6:46 Ido Schimmel
  2019-02-24  6:46 ` [PATCH net-next 01/15] mlxsw: spectrum_acl: Remove unused ops field from group structure Ido Schimmel
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Ido Schimmel @ 2019-02-24  6:46 UTC (permalink / raw)
  To: netdev@vger.kernel.org
  Cc: davem@davemloft.net, Jiri Pirko, mlxsw, Ido Schimmel

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.

Jiri Pirko (15):
  mlxsw: spectrum_acl: Remove unused ops field from group structure
  mlxsw: spectrum_acl: Split TCAM group structure into two
  mlxsw: spectrum_acl: Introduce a mutex to guard region list updates
  mlxsw: spectrum_acl: Refactor vregion association code
  mlxsw: spectrum_acl: Introduce vregion mutex
  mlxsw: spectrum_acl: Introduce mutex to guard Bloom Filter updates
  mlxsw: spectrum_acl: Introduce a mutex to guard objagg instance
    manipulation
  mlxsw: spectrum_acl: Enable vregion rehash per-profile
  mlxsw: spectrum_acl: Don't take rtnl lock during
    vregion_rehash_intrvl_set()
  mlxsw: spectrum_acl: Remove RTNL lock assertions from ERP code
  mlxsw: spectrum_acl: Don't take mutex in
    mlxsw_sp_acl_tcam_vregion_rehash_work()
  selftests: mlxsw: spectrum-2: Add IPv6 variant of simple delta rehash
    test
  mlxsw: spectrum_acl: Add vregion migration end tracepoint
  selftests: mlxsw: spectrum-2: Check migrate end trace
  selftests: mlxsw: spectrum-2: Add massive delta rehash test

 .../mlxsw/spectrum_acl_bloom_filter.c         |  34 +-
 .../mellanox/mlxsw/spectrum_acl_erp.c         |  31 +-
 .../mellanox/mlxsw/spectrum_acl_tcam.c        | 446 +++++++++++-------
 .../mellanox/mlxsw/spectrum_acl_tcam.h        |   3 +
 include/trace/events/mlxsw.h                  |  20 +
 .../drivers/net/mlxsw/spectrum-2/tc_flower.sh | 245 ++++++++++
 6 files changed, 592 insertions(+), 187 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2019-02-25  4:26 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-24  6:46 [PATCH net-next 00/15] mlxsw: spectrum_acl: Don't take rtnl mutex for region rehash Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 01/15] mlxsw: spectrum_acl: Remove unused ops field from group structure Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 02/15] mlxsw: spectrum_acl: Split TCAM group structure into two Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 03/15] mlxsw: spectrum_acl: Introduce a mutex to guard region list updates Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 04/15] mlxsw: spectrum_acl: Refactor vregion association code Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 05/15] mlxsw: spectrum_acl: Introduce vregion mutex Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 06/15] mlxsw: spectrum_acl: Introduce mutex to guard Bloom Filter updates Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 08/15] mlxsw: spectrum_acl: Enable vregion rehash per-profile Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 07/15] mlxsw: spectrum_acl: Introduce a mutex to guard objagg instance manipulation Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 09/15] mlxsw: spectrum_acl: Don't take rtnl lock during vregion_rehash_intrvl_set() Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 10/15] mlxsw: spectrum_acl: Remove RTNL lock assertions from ERP code Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 11/15] mlxsw: spectrum_acl: Don't take mutex in mlxsw_sp_acl_tcam_vregion_rehash_work() Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 12/15] selftests: mlxsw: spectrum-2: Add IPv6 variant of simple delta rehash test Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 13/15] mlxsw: spectrum_acl: Add vregion migration end tracepoint Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 14/15] selftests: mlxsw: spectrum-2: Check migrate end trace Ido Schimmel
2019-02-24  6:46 ` [PATCH net-next 15/15] selftests: mlxsw: spectrum-2: Add massive delta rehash test Ido Schimmel
2019-02-25  4:26 ` [PATCH net-next 00/15] mlxsw: spectrum_acl: Don't take rtnl mutex for region rehash David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox