On Tue, 16 Mar 2021 17:02:53 +0200 Ido Schimmel wrote: > From: Ido Schimmel <[email protected]> > > So far mlxsw only supported ingress sampling using matchall classifier. > This series adds support for egress sampling and policy-based sampling > using flower classifier on Spectrum-2 and newer ASICs. As such, it is > now possible to issue these commands: > > # tc filter add dev swp1 egress pref 1 proto all matchall action sample rate > 100 group 1 > > # tc filter add dev swp2 ingress pref 1 proto ip flower dst_ip 198.51.100.1 > action sample rate 100 group 2 > > When performing egress sampling (using either matchall or flower) the > ASIC is able to report the end-to-end latency which is passed to the > psample module.
Acked-by: Jakub Kicinski <[email protected]>
