]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests: forwarding: Increase maximum deviation in multipath test
authorIdo Schimmel <idosch@mellanox.com>
Thu, 3 May 2018 07:51:32 +0000 (10:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2018 16:54:31 +0000 (12:54 -0400)
commit9413248753c4c5eba5a9e2548e7d98c73230763d
tree269cfcad55dad61f9bf04024f1d0ff8a88851517
parent5f110899ae1494d47678f88e3c53c4c5f67077c4
selftests: forwarding: Increase maximum deviation in multipath test

We sometimes observe failures in the test due to too large discrepancy
between the measured and expected ratios. For example:

TEST: ECMP                                                          [FAIL]
        Too large discrepancy between expected and measured ratios
        INFO: Expected ratio 1.00 Measured ratio 1.11

Fix this by allowing an up to 15% deviation between both ratios.

Another possibility is to increase the number of generated flows, but
this will prolong the execution time of the test, which is already quite
high.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/router_multipath.sh