From: Kui-Feng Lee <thinker.li@gmail.com>
To: netdev@vger.kernel.org, ast@kernel.org, martin.lau@linux.dev,
kernel-team@meta.com, kuba@kernel.org, davem@davemloft.net,
dsahern@kernel.org
Cc: sinquersw@gmail.com, kuifeng@meta.com,
Kui-Feng Lee <thinker.li@gmail.com>
Subject: [PATCH net-next] selftests/net: force synchronized GC for a test.
Date: Fri, 23 Feb 2024 00:13:46 -0800 [thread overview]
Message-ID: <20240223081346.2052267-1-thinker.li@gmail.com> (raw)
Due to the slowness of the test environment, always set off a synchronized
GC after waiting for GC. This can fix the problem that Fib6 garbage
collection test fails occasionally.
Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
---
tools/testing/selftests/net/fib_tests.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/fib_tests.sh b/tools/testing/selftests/net/fib_tests.sh
index 3ec1050e47a2..0a82c9bc07bb 100755
--- a/tools/testing/selftests/net/fib_tests.sh
+++ b/tools/testing/selftests/net/fib_tests.sh
@@ -823,7 +823,9 @@ fib6_gc_test()
$IP -6 route add 2001:20::$i \
via 2001:10::2 dev dummy_10 expires $EXPIRE
done
+ # Wait for GC
sleep $(($EXPIRE * 2 + 1))
+ $NS_EXEC sysctl -wq net.ipv6.route.flush=1
check_rt_num 0 $($IP -6 route list |grep expires|wc -l)
log_test $ret 0 "ipv6 route garbage collection (with permanent routes)"
@@ -864,7 +866,7 @@ fib6_gc_test()
# Wait for GC
sleep $(($EXPIRE * 2 + 1))
-
+ $NS_EXEC sysctl -wq net.ipv6.route.flush=1
check_rt_num 5 $($IP -6 route list |grep -v expires|grep 2001:20::|wc -l)
log_test $ret 0 "ipv6 route garbage collection (replace with permanent)"
--
2.34.1
next reply other threads:[~2024-02-23 8:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 8:13 Kui-Feng Lee [this message]
2024-02-24 2:21 ` [PATCH net-next] selftests/net: force synchronized GC for a test Jakub Kicinski
2024-02-24 3:15 ` David Ahern
2024-02-24 3:54 ` Kui-Feng Lee
2024-02-29 17:39 ` Kui-Feng Lee
2024-03-02 0:45 ` Kui-Feng Lee
2024-03-04 15:44 ` Jakub Kicinski
2024-03-04 17:27 ` Kui-Feng Lee
2024-03-05 2:41 ` David Ahern
2024-03-05 2:49 ` David Ahern
2024-03-05 3:20 ` Kui-Feng Lee
2024-02-24 4:40 ` Kui-Feng Lee
2024-02-27 8:53 ` Paolo Abeni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240223081346.2052267-1-thinker.li@gmail.com \
--to=thinker.li@gmail.com \
--cc=ast@kernel.org \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=kernel-team@meta.com \
--cc=kuba@kernel.org \
--cc=kuifeng@meta.com \
--cc=martin.lau@linux.dev \
--cc=netdev@vger.kernel.org \
--cc=sinquersw@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.