git: wg: Flush v4 routes for v6 randomized test to reduce the test time
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 08:49:36 PST 2024
commit 350efd1c8f5853cdac3e2ce7f949eef6cd1d91c2
Author: Aaron LI <aly at aaronly.me>
Date: Sat Feb 3 13:04:11 2024 +0800
wg: Flush v4 routes for v6 randomized test to reduce the test time
The validation method uses a simple list to store all the routes in a
sorted way so that it can be looked up and verify the lookup results
of the radix tree. The list method can be really slow when there are
many routes, so the randomized test can take ~80 minutes on my test box.
Separate the v4 and v6 tests to significantly reduce the test time (e.g.,
from ~80 minutes to ~15 minutes).
Summary of changes:
sys/net/wg/Makefile | 2 +-
sys/net/wg/selftest/allowedips.c | 40 +++++++++++++++++++++++-----------------
2 files changed, 24 insertions(+), 18 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/350efd1c8f5853cdac3e2ce7f949eef6cd1d91c2
--
DragonFly BSD source repository
More information about the Commits
mailing list