]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Reorganize-trap-data'
authorDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 23:42:32 +0000 (16:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 23:42:32 +0000 (16:42 -0700)
commit653ff1ac2f45d12b4f8fd32d7329947b3d9ed95b
treeae1eb050581f285eb24b977b617f397da2992b1b
parent6edf51aae54c1cc2656ab13d25b68e89400bcc92
parent4008330a4d3b90f6c66b3039df9050058b46b1f3
Merge branch 'mlxsw-Reorganize-trap-data'

Ido Schimmel says:

====================
mlxsw: Reorganize trap data

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.
====================

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