]> git.baikalelectronics.ru Git - kernel.git/commit
wireguard: ratelimiter: disable timings test by default
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 16 Sep 2022 14:37:38 +0000 (15:37 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 18:26:13 +0000 (11:26 -0700)
commite1d691888cd6c5fb282acbe718c745b7d4f76af8
treebd54d1275b0a5b2a247b0af9fb95a7f6efbcbc8e
parent12e5f92c6c6696115ba224a2fb7627cb3a2bd8c6
wireguard: ratelimiter: disable timings test by default

A previous commit tried to make the ratelimiter timings test more
reliable but in the process made it less reliable on other
configurations. This is an impossible problem to solve without
increasingly ridiculous heuristics. And it's not even a problem that
actually needs to be solved in any comprehensive way, since this is only
ever used during development. So just cordon this off with a DEBUG_
ifdef, just like we do for the trie's randomized tests, so it can be
enabled while hacking on the code, and otherwise disabled in CI. In the
process we also revert 7b7e1450ae6f.

Fixes: 7b7e1450ae6f ("wireguard: ratelimiter: use hrtimer in selftest")
Fixes: 4dff5496e367 ("net: WireGuard secure network tunnel")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wireguard/selftest/ratelimiter.c