OSDN Git Service

mlxsw: spectrum_matchall: Split sampling support between ASICs
authorIdo Schimmel <idosch@nvidia.com>
Thu, 11 Mar 2021 12:24:14 +0000 (14:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:22:39 +0000 (16:22 -0800)
commit20afb9bc480d0bfe3d1abcb934d79b2cdc19acbf
tree3321d6f8a44fa93ef740749e043a9bd03004f40a
parent2dcbd9207b3380c0efd89b2805dfc4e867470eb9
mlxsw: spectrum_matchall: Split sampling support between ASICs

Sampling of ingress packets is supported using a dedicated sampling
mechanism on all Spectrum ASICs. However, Spectrum-2 and later ASICs
support more sophisticated sampling by mirroring packets to the CPU.

As a preparation for more advanced sampling configurations, split the
sampling operations between Spectrum-1 and later ASICs.

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_matchall.c