lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 17 May 2020 01:43:04 +0300
From:   Ido Schimmel <>
Cc:,,,, Ido Schimmel <>
Subject: [PATCH net-next 0/6] mlxsw: Reorganize trap data

From: Ido Schimmel <>

This patch set does not include any functional changes. It merely
reworks the internal storage of traps, trap groups and trap policers in
mlxsw to each use a single array.

These changes allow us to get rid of the multiple arrays we currently
have for traps, which make the trap data easier to validate and extend
with more per-trap information in the future. It will also allow us to
more easily add per-ASIC traps in future submissions.

Last two patches include minor changes to devlink-trap selftests.

Tested with existing devlink-trap selftests.

Ido Schimmel (6):
  mlxsw: spectrum_trap: Move struct definition out of header file
  mlxsw: spectrum_trap: Store all trap policer data in one array
  mlxsw: spectrum_trap: Store all trap group data in one array
  mlxsw: spectrum_trap: Store all trap data in one array
  selftests: devlink_lib: Remove double blank line
  selftests: mlxsw: Do not hard code trap group name

 .../ethernet/mellanox/mlxsw/spectrum_trap.c   | 763 ++++++++++++------
 .../ethernet/mellanox/mlxsw/spectrum_trap.h   |  16 +-
 .../net/mlxsw/       |   4 +-
 .../net/mlxsw/        |  33 +-
 .../net/mlxsw/        |  35 +-
 .../net/mlxsw/   |  20 +-
 .../net/mlxsw/     |   6 +-
 .../net/mlxsw/    |   9 +-
 .../selftests/net/forwarding/   |   9 +-
 9 files changed, 572 insertions(+), 323 deletions(-)


Powered by blists - more mailing lists