mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
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>
This commit is contained in:
parent
bd8762bec9
commit
a91263d520
11 changed files with 18 additions and 12 deletions
|
@ -1310,7 +1310,7 @@ void bpf_int_jit_compile(struct bpf_prog *fp)
|
|||
if (jit.prg_buf) {
|
||||
set_memory_ro((unsigned long)header, header->pages);
|
||||
fp->bpf_func = (void *) jit.prg_buf;
|
||||
fp->jited = true;
|
||||
fp->jited = 1;
|
||||
}
|
||||
free_addrs:
|
||||
kfree(jit.addrs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue