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)
commitd53b1162d72a24c8bd2b03116d83070b4e770eaa
treeae1eb050581f285eb24b977b617f397da2992b1b
parent13f15b59ad70549545272cc8f0bf4d68a8ef9c14
parent04cc99d9bdb1119172e21c121950a0253f5c659f
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>