mlxsw: reg: Extend mirroring registers with probability rate field
authorIdo Schimmel <idosch@nvidia.com>
Thu, 11 Mar 2021 12:24:12 +0000 (14:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:22:39 +0000 (16:22 -0800)
commitfa3faeb7aedbfbd7e30eb25a25058a2cce1010fb
treed782b9b4d6e6299524ba3300f9cf55568a8879aa
parent5c7659eba873df8929f4bffd352906f625d4cfec
mlxsw: reg: Extend mirroring registers with probability rate field

The MPAR and MPAGR registers are used to configure the binding between
the mirroring trigger (e.g., received packet) and the SPAN agent. Add
probability rate field, which will allow us to support sampling by
mirroring to the CPU.

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