]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Increase the tolerance of backlog buildup
authorPetr Machata <petrm@nvidia.com>
Fri, 23 Apr 2021 12:19:47 +0000 (14:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 21:01:28 +0000 (14:01 -0700)
commit6b8492cecc689ff4af3523a44b4f991c1deee2dc
tree2233b49c5ffdde7fc941df4e5cca4bdd67f344fa
parentca96f70f80e1874268f3e4445e881f4bfa63ff1b
selftests: mlxsw: Increase the tolerance of backlog buildup

The intention behind this test is to make sure that qdisc limit is
correctly projected to the HW. However, first, due to rounding in the
qdisc, and then in the driver, the number cannot actually be accurate. And
second, the approach to testing this is to oversubscribe the port with
traffic generated on the same switch. The actual backlog size therefore
fluctuates.

In practice, this test proved to be noisier than the rest, and spuriously
fails every now and then. Increase the tolerance to 10 % to avoid these
issues.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/sch_red_core.sh