ebpf: move read-only fields to bpf_prog and shrink bpf_prog_aux
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 1 Mar 2015 11:31:47 +0000 (12:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Mar 2015 19:05:19 +0000 (14:05 -0500)
commit24701ecea76b0b93bd9667486934ec310825f558
tree7f658077fea363e89643d95fc808236d748b8431
parent96be4325f443dbbfeb37d2a157675ac0736531a1
ebpf: move read-only fields to bpf_prog and shrink bpf_prog_aux

is_gpl_compatible and prog_type should be moved directly into bpf_prog
as they stay immutable during bpf_prog's lifetime, are core attributes
and they can be locked as read-only later on via bpf_prog_select_runtime().

With a bit of rearranging, this also allows us to shrink bpf_prog_aux
to exactly 1 cacheline.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/bpf.h
include/linux/filter.h
kernel/bpf/syscall.c
kernel/bpf/verifier.c
net/core/filter.c
This page took 0.026773 seconds and 5 git commands to generate.