diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2015-09-30 02:41:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-03 15:02:39 +0300 |
commit | a91263d520246b63c63e75ddfb072ee6a853fe15 (patch) | |
tree | 17f158474a969614207febc06cae85cd17dd4ab8 /arch/powerpc | |
parent | bd8762bec95ed81d5b81390ff23c5f83345cb536 (diff) | |
download | linux-a91263d520246b63c63e75ddfb072ee6a853fe15.tar.xz |
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 'arch/powerpc')
-rw-r--r-- | arch/powerpc/net/bpf_jit_comp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/net/bpf_jit_comp.c b/arch/powerpc/net/bpf_jit_comp.c index 17cea18a09d3..04782164ee67 100644 --- a/arch/powerpc/net/bpf_jit_comp.c +++ b/arch/powerpc/net/bpf_jit_comp.c @@ -679,7 +679,7 @@ void bpf_jit_compile(struct bpf_prog *fp) ((u64 *)image)[1] = local_paca->kernel_toc; #endif fp->bpf_func = (void *)image; - fp->jited = true; + fp->jited = 1; } out: kfree(addrs); |