]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31da88a214e29eebd821833edb638d6c877afdbc
tree3321d6f8a44fa93ef740749e043a9bd03004f40a
parent2429de2f7c1c00d62273db09fe505e25ae842cd2
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