Commit d40bc962 authored by Eric Dumazet's avatar Eric Dumazet Committed by Daniel Borkmann

test_bpf: add a schedule point

test_bpf() is taking 1.6 seconds nowadays, it is time
to add a schedule point in it.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent ca369602
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/if_vlan.h> #include <linux/if_vlan.h>
#include <linux/random.h> #include <linux/random.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/sched.h>
/* General test specific settings */ /* General test specific settings */
#define MAX_SUBTESTS 3 #define MAX_SUBTESTS 3
...@@ -6582,6 +6583,7 @@ static __init int test_bpf(void) ...@@ -6582,6 +6583,7 @@ static __init int test_bpf(void)
struct bpf_prog *fp; struct bpf_prog *fp;
int err; int err;
cond_resched();
if (exclude_test(i)) if (exclude_test(i))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment