Skip to content

Commit 9413248

Browse files
idoschdavem330
authored andcommitted
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>
1 parent 5f11089 commit 9413248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/forwarding/router_multipath.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ multipath_eval()
191191
diff=$(echo $weights_ratio - $packets_ratio | bc -l)
192192
diff=${diff#-}
193193

194-
test "$(echo "$diff / $weights_ratio > 0.1" | bc -l)" -eq 0
194+
test "$(echo "$diff / $weights_ratio > 0.15" | bc -l)" -eq 0
195195
check_err $? "Too large discrepancy between expected and measured ratios"
196196
log_test "$desc"
197197
log_info "Expected ratio $weights_ratio Measured ratio $packets_ratio"

0 commit comments

Comments
 (0)