diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-10-16 16:40:54 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-18 14:17:10 +0100 |
commit | 00176a34d9e27ab1e77db75fe13abc005cffe0ca (patch) | |
tree | 5bc104a145c96a042214e6b7f3e860502cc2bd96 /include/linux/bpf_verifier.h | |
parent | 7de16e3a35578f4f5accc6f5f23970310483d0a2 (diff) | |
download | lwn-00176a34d9e27ab1e77db75fe13abc005cffe0ca.tar.gz lwn-00176a34d9e27ab1e77db75fe13abc005cffe0ca.zip |
bpf: remove the verifier ops from program structure
Since the verifier ops don't have to be associated with
the program for its entire lifetime we can move it to
verifier's struct bpf_verifier_env.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/bpf_verifier.h')
-rw-r--r-- | include/linux/bpf_verifier.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h index f00ef751c1c5..feeaea93d959 100644 --- a/include/linux/bpf_verifier.h +++ b/include/linux/bpf_verifier.h @@ -141,6 +141,7 @@ struct bpf_ext_analyzer_ops { */ struct bpf_verifier_env { struct bpf_prog *prog; /* eBPF program being verified */ + const struct bpf_verifier_ops *ops; struct bpf_verifier_stack_elem *head; /* stack of verifier states to be processed */ int stack_size; /* number of states to be processed */ bool strict_alignment; /* perform strict pointer alignment checks */ |