]> 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)
commit6699a623ef43483fe7dff09db5f73a03be2081a6
tree3321d6f8a44fa93ef740749e043a9bd03004f40a
parentf75c04754bf02d270690e7e742f84a12372522e8
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