selftests: mlxsw: Add tc sample tests for new triggers
authorIdo Schimmel <idosch@nvidia.com>
Tue, 16 Mar 2021 15:03:02 +0000 (17:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2021 22:32:23 +0000 (15:32 -0700)
commitf0b692c4ee2fdd0d4291fe3cbde156792896895e
treef64913aae43f66fa94235162a406e1fdc5351a2e
parent45aad0b7043da88244622a65773dae24fd1dd4da
selftests: mlxsw: Add tc sample tests for new triggers

Test that packets are sampled when tc-sample is used with matchall
egress binding and flower classifier. Verify that when performing
sampling on egress the end-to-end latency is reported as metadata.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/tc_sample.sh