Skip to content

Commit 988af27

Browse files
liuhangbinkuba-moo
authored andcommitted
selftests/net: reduce xfrm_policy test time
The check_random_order test add/get plenty of xfrm rules, which consume a lot time on debug kernel and always TIMEOUT. Let's reduce the test loop and see if it works. Signed-off-by: Hangbin Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 52d94c1 commit 988af27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/net/xfrm_policy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ check_random_order()
293293
local ns=$1
294294
local log=$2
295295

296-
for i in $(seq 100); do
296+
for i in $(seq 50); do
297297
ip -net $ns xfrm policy flush
298298
for j in $(seq 0 16 255 | sort -R); do
299299
ip -net $ns xfrm policy add dst $j.0.0.0/24 dir out priority 10 action allow
@@ -306,7 +306,7 @@ check_random_order()
306306
done
307307
done
308308

309-
for i in $(seq 100); do
309+
for i in $(seq 50); do
310310
ip -net $ns xfrm policy flush
311311
for j in $(seq 0 16 255 | sort -R); do
312312
local addr=$(printf "e000:0000:%02x00::/56" $j)

0 commit comments

Comments
 (0)