diff options
author | Ido Schimmel <idosch@nvidia.com> | 2021-03-16 17:03:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-16 15:32:22 -0700 |
commit | 45aad0b7043da88244622a65773dae24fd1dd4da (patch) | |
tree | c0e2b13d8f8d13f1d735eb19155e1eb9a0a92d05 /tools | |
parent | ca19ea63f739c7a4e5dad64951706fea789e1f1a (diff) | |
download | linux-45aad0b7043da88244622a65773dae24fd1dd4da.tar.bz2 |
mlxsw: spectrum_acl: Offload FLOW_ACTION_SAMPLE
Implement support for action sample when used with a flower classifier
by implementing the required sampler_add() / sampler_del() callbacks and
registering an Rx listener for the sampled packets.
The sampler_add() callback returns an error for Spectrum-1 as the
functionality is not supported. In Spectrum-{2,3} the callback creates a
mirroring agent towards the CPU. The agent's identifier is used by the
policy engine code to mirror towards the CPU with probability.
The Rx listener for the sampled packet is registered with the 'policy
engine' mirroring reason and passes trapped packets to the psample
module after looking up their parameters (e.g., sampling group).
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions