[patch net-next/mlxsw internal preRFC 0/3] mlxsw: Introduce ERP sharing by multiple masks - static approach

Jiri Pirko jiri at resnulli.us
Sun Aug 5 23:01:30 AEST 2018


From: Jiri Pirko <jiri at mellanox.com>

This is first preRFC compile-tested draft of the solution to share
multiple masks in a single ERP using "delta". Note this is a very basic
static approach. objagg lib is to be extended in future to do bg process
of re-hashing the ERPs.

Please, don't do any serious review. The code needs to be tweaked and
debugged. The quest is to verify the concept of the solution.

Thanks!

Jiri Pirko (3):
  lib: introduce initial implementation of object aggregation manager
  mlxsw: spectrum: acl_erp: Convert to use objagg for tracking ERPs
  mlxsw: spectrum: acl: Implement delta for ERP

 drivers/net/ethernet/mellanox/mlxsw/Kconfig        |   1 +
 drivers/net/ethernet/mellanox/mlxsw/reg.h          |   8 +-
 .../ethernet/mellanox/mlxsw/spectrum2_acl_tcam.c   |  12 +-
 .../ethernet/mellanox/mlxsw/spectrum_acl_atcam.c   |  37 ++--
 .../net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c | 190 ++++++++++++++---
 .../ethernet/mellanox/mlxsw/spectrum_acl_tcam.h    |  35 +++-
 include/linux/objagg.h                             |  27 +++
 lib/Kconfig                                        |   3 +
 lib/Kconfig.debug                                  |  10 +
 lib/Makefile                                       |   3 +
 lib/objagg.c                                       | 231 +++++++++++++++++++++
 lib/test_objagg.c                                  |   8 +
 12 files changed, 502 insertions(+), 63 deletions(-)
 create mode 100644 include/linux/objagg.h
 create mode 100644 lib/objagg.c
 create mode 100644 lib/test_objagg.c

-- 
2.14.4



More information about the Linux-mlxsw mailing list