]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Make sampling test more robust
authorIdo Schimmel <idosch@OSS.NVIDIA.COM>
Mon, 17 May 2021 17:03:52 +0000 (20:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 May 2021 22:15:46 +0000 (15:15 -0700)
commitd5e5129b18dca09a6ad11b0202214a9609bf5acc
tree813462af24de2d7fa51cd291904d3b24535a414c
parent4211401106775f823795ed63555519d342a7894f
selftests: mlxsw: Make sampling test more robust

The test sometimes fails with an error message such as:

TEST: tc sample (w/ flower) rate (egress)                           [FAIL]
Expected 100 packets, got 70 packets, which is -30% off. Required accuracy is +-25%

Make the test more robust by generating more packets, therefore
increasing the number of expected samples. Decrease the transmission
delay in order not to needlessly prolong the test.

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