]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c3a333b8eb278f0f68209f1b0904a5837ff3479
treed782b9b4d6e6299524ba3300f9cf55568a8879aa
parent362850ace9995b71b73996ec26b1940e7c58f0dd
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