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)
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>

Trivial merge