]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Remove mlxsw_sp_sample_receive()
authorIdo Schimmel <idosch@nvidia.com>
Sun, 14 Mar 2021 12:19:38 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Mar 2021 22:00:44 +0000 (15:00 -0700)
commit8c986bbb8bed1f6be89a2633455da11467bd6486
treef00ae7f7893c8455e8b36ff8a197ce02ecb95e27
parent538acb30daa78a108fe5b1159a1a7e76f787b5b1
mlxsw: spectrum: Remove mlxsw_sp_sample_receive()

The function resolves the psample sampling group from the Rx port
because this is the only form of sampling the driver currently supports.
Subsequent patches are going to add support for Tx-based and
policy-based sampling, in which case the sampling group would not be
resolved from the Rx port.

Therefore, move this code to the Rx-specific sampling listener.

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.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c