mlxsw: spectrum: Start using sampling triggers hash table
authorIdo Schimmel <idosch@nvidia.com>
Tue, 16 Mar 2021 15:02:58 +0000 (17:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 22:32:22 +0000 (15:32 -0700)
commit90f53c53ec4acaa86055f4d2e98767eeb735b42d
treea5411e9d2e145bc71fd7527af64e2aef23527911
parent1b9fc42e46dfea0efa39165d906b0f6a05d6b558
mlxsw: spectrum: Start using sampling triggers hash table

Start using the previously introduced sampling triggers hash table to
store sampling parameters instead of storing them as attributes of the
sampled port.

This makes it easier to introduce new sampling triggers.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_matchall.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c