Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: netfilter: avoid test timeouts on debug kernels

Jakub reports that some tests fail on netdev CI when executed in a debug
kernel.

Increase test timeout to 30m, this should hopefully be enough.
Also reduce test duration where possible for "slow" machines.

Signed-off-by: Florian Westphal <fw@strlen.de>
Link: https://lore.kernel.org/r/20240429105736.22677-1-fw@strlen.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Florian Westphal and committed by
Jakub Kicinski
f581bcf0 5cd9fac3

+10 -3
+5 -1
tools/testing/selftests/net/netfilter/br_netfilter.sh
··· 40 40 fromns="$1" 41 41 dstip="$2" 42 42 43 - for i in $(seq 1 500); do 43 + local packets=500 44 + 45 + [ "$KSFT_MACHINE_SLOW" = yes ] && packets=100 46 + 47 + for i in $(seq 1 $packets); do 44 48 if ! ip netns exec "$fromns" ping -q -f -b -c 1 -q "$dstip" > /dev/null 2>&1; then 45 49 echo "ERROR: ping -b from $fromns to $dstip" 46 50 ip netns exec "$ns0" nft list ruleset
+1
tools/testing/selftests/net/netfilter/nft_nat_zones.sh
··· 13 13 have_socat=0 14 14 ret=0 15 15 16 + [ "$KSFT_MACHINE_SLOW" = yes ] && maxclients=40 16 17 # client1---. 17 18 # veth1-. 18 19 # |
+3 -1
tools/testing/selftests/net/netfilter/nft_zones_many.sh
··· 6 6 source lib.sh 7 7 8 8 zones=2000 9 + [ "$KSFT_MACHINE_SLOW" = yes ] && zones=500 10 + 9 11 have_ct_tool=0 10 12 ret=0 11 13 ··· 91 89 count=$(ip netns exec "$ns1" conntrack -C) 92 90 duration=$((stop-outerstart)) 93 91 94 - if [ "$count" -eq "$max_zones" ]; then 92 + if [ "$count" -ge "$max_zones" ]; then 95 93 echo "PASS: inserted $count entries from packet path in $duration ms total" 96 94 else 97 95 ip netns exec "$ns1" conntrack -S 1>&2
+1 -1
tools/testing/selftests/net/netfilter/settings
··· 1 - timeout=500 1 + timeout=1800