hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/net/wireguard/selftest/ratelimiter.c
....@@ -167,7 +167,7 @@
167167 ++test;
168168 #endif
169169
170
- for (trials = TRIALS_BEFORE_GIVING_UP;;) {
170
+ for (trials = TRIALS_BEFORE_GIVING_UP; IS_ENABLED(DEBUG_RATELIMITER_TIMINGS);) {
171171 int test_count = 0, ret;
172172
173173 ret = timings_test(skb4, hdr4, skb6, hdr6, &test_count);
....@@ -176,7 +176,6 @@
176176 test += test_count;
177177 goto err;
178178 }
179
- msleep(500);
180179 continue;
181180 } else if (ret < 0) {
182181 test += test_count;
....@@ -195,7 +194,6 @@
195194 test += test_count;
196195 goto err;
197196 }
198
- msleep(50);
199197 continue;
200198 }
201199 test += test_count;