OSDN Git Service

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)
commit48990bef1e6880613b142cea4f3962dd51458bd6
treef00ae7f7893c8455e8b36ff8a197ce02ecb95e27
parente1f78ecdfd59d560c42bc04b9bfb746ef8a9dfb1
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