Netdev List
 help / color / mirror / Atom feed
From: Ido Schimmel <idosch@mellanox.com>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
	Jiri Pirko <jiri@mellanox.com>, mlxsw <mlxsw@mellanox.com>,
	Ido Schimmel <idosch@mellanox.com>
Subject: [PATCH net-next 00/14] mlxsw: Implement periodic ERP rehash
Date: Thu, 7 Feb 2019 11:22:44 +0000	[thread overview]
Message-ID: <20190207112211.10375-1-idosch@mellanox.com> (raw)

Jiri says:

Currently, an ERP set is created for each region according to rules
inserted and order of their insertion. However that might lead to
suboptimal ERP sets and possible unnecessary spillage into C-TCAM.
This patchset aims to fix this problem and introduces periodical checking
of used ERP sets and in case a better ERP set is possible for the given
set of rules, it rehashes the region to use the better ERP set.

Patch 1 prepares devlink params infra in order to fix the
        init/fini sequences.
Patch 2 implements hints infra in objagg library.
Patch 3 fixes a typo
Patch 4 adds number of root objects directly into objagg stats.
Patches 5-7 do split of multiple structs in Spectrum TCAM code.
Patch 8 introduces initial implementation of ERP rehash logic,
         according to objagg hints.
Patch 9 adds hints priv passing trought the layers.
Patch 10 adds multi field into PAGT reg. (new patch)
Patch 11 implements actual region rules migration in TCAM code.
Patch 12 adds a devlink param so user is able to control
         rehash interval.
Patch 13 adds couple of tracepoints in order to track
         rehash procedures.
Patch 14 adds a simple selftest to test region rehash.

Jiri Pirko (14):
  devlink: publish params only after driver init is done
  lib: objagg: implement optimization hints assembly and use hints for
    object creation
  lib: objagg: fix typo in objagg_stats_put() docstring
  lib: objagg: add root count to stats
  mlxsw: spectrum_acl: Split region struct into region and vregion
  mlxsw: spectrum_acl: Split chunk struct into chunk and vchunk
  mlxsw: spectrum_acl: Split entry struct into entry and ventry
  mlxsw: spectrum_acl: Implement basic ERP rehash hits creation
  mlxsw: spectrum_acl: Pass hints priv all the way to ERP code
  mlxsw: reg: Add multi field to PAGT register
  mlxsw: spectrum_acl: Implement region migration according to hints
  mlxsw: spectrum: add "acl_region_rehash_interval" devlink param
  mlxsw: spectrum_acl: Add couple of vregion rehash tracepoints
  selftests: mlxsw: spectrum-2: Add simple delta rehash test

 .../networking/devlink-params-mlxsw.txt       |   8 +
 .../net/ethernet/broadcom/bnxt/bnxt_devlink.c |   3 +
 drivers/net/ethernet/mellanox/mlx4/main.c     |   1 +
 drivers/net/ethernet/mellanox/mlxsw/core.c    |   5 +
 drivers/net/ethernet/mellanox/mlxsw/core.h    |   5 +
 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  11 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  69 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |   7 +-
 .../mellanox/mlxsw/spectrum1_acl_tcam.c       |   3 +-
 .../mellanox/mlxsw/spectrum2_acl_tcam.c       |  20 +-
 .../ethernet/mellanox/mlxsw/spectrum_acl.c    |  18 +-
 .../mellanox/mlxsw/spectrum_acl_atcam.c       |  14 +-
 .../mellanox/mlxsw/spectrum_acl_erp.c         | 120 ++-
 .../mellanox/mlxsw/spectrum_acl_tcam.c        | 944 +++++++++++++-----
 .../mellanox/mlxsw/spectrum_acl_tcam.h        |  24 +-
 include/linux/objagg.h                        |  21 +-
 include/net/devlink.h                         |  11 +
 include/trace/events/mlxsw.h                  |  61 ++
 lib/objagg.c                                  | 579 ++++++++++-
 lib/test_objagg.c                             | 194 +++-
 net/core/devlink.c                            |  48 +-
 .../drivers/net/mlxsw/spectrum-2/tc_flower.sh |  77 +-
 22 files changed, 1943 insertions(+), 300 deletions(-)

-- 
2.20.1


             reply	other threads:[~2019-02-07 11:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-07 11:22 Ido Schimmel [this message]
2019-02-07 11:22 ` [PATCH net-next 01/14] devlink: publish params only after driver init is done Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 02/14] lib: objagg: implement optimization hints assembly and use hints for object creation Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 03/14] lib: objagg: fix typo in objagg_stats_put() docstring Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 04/14] lib: objagg: add root count to stats Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 05/14] mlxsw: spectrum_acl: Split region struct into region and vregion Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 06/14] mlxsw: spectrum_acl: Split chunk struct into chunk and vchunk Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 07/14] mlxsw: spectrum_acl: Split entry struct into entry and ventry Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 08/14] mlxsw: spectrum_acl: Implement basic ERP rehash hits creation Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 09/14] mlxsw: spectrum_acl: Pass hints priv all the way to ERP code Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 10/14] mlxsw: reg: Add multi field to PAGT register Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 11/14] mlxsw: spectrum_acl: Implement region migration according to hints Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 12/14] mlxsw: spectrum: add "acl_region_rehash_interval" devlink param Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 13/14] mlxsw: spectrum_acl: Add couple of vregion rehash tracepoints Ido Schimmel
2019-02-07 11:22 ` [PATCH net-next 14/14] selftests: mlxsw: spectrum-2: Add simple delta rehash test Ido Schimmel
2019-02-08 23:03 ` [PATCH net-next 00/14] mlxsw: Implement periodic ERP rehash David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190207112211.10375-1-idosch@mellanox.com \
    --to=idosch@mellanox.com \
    --cc=davem@davemloft.net \
    --cc=jiri@mellanox.com \
    --cc=mlxsw@mellanox.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox