diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2015-09-30 01:41:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-03 05:02:39 -0700 |
commit | a91263d520246b63c63e75ddfb072ee6a853fe15 (patch) | |
tree | 17f158474a969614207febc06cae85cd17dd4ab8 /net/core | |
parent | bd8762bec95ed81d5b81390ff23c5f83345cb536 (diff) | |
download | linux-stable-a91263d520246b63c63e75ddfb072ee6a853fe15.tar.gz linux-stable-a91263d520246b63c63e75ddfb072ee6a853fe15.tar.bz2 linux-stable-a91263d520246b63c63e75ddfb072ee6a853fe15.zip |
ebpf: migrate bpf_prog's flags to bitfield
As we need to add further flags to the bpf_prog structure, lets migrate
both bools to a bitfield representation. The size of the base structure
(excluding insns) remains unchanged at 40 bytes.
Add also tags for the kmemchecker, so that it doesn't throw false
positives. Even in case gcc would generate suboptimal code, it's not
being accessed in performance critical paths.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/filter.c b/net/core/filter.c index 60e3fe7c59c0..04664acb86ce 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -1001,7 +1001,7 @@ static struct bpf_prog *bpf_prepare_filter(struct bpf_prog *fp, int err; fp->bpf_func = NULL; - fp->jited = false; + fp->jited = 0; err = bpf_check_classic(fp->insns, fp->len); if (err) { |