diff options
author | Martin KaFai Lau <kafai@fb.com> | 2017-06-05 21:15:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 21:41:24 +0200 |
commit | 783d28dd11f68fb25d1f2e0de7c42336394ef128 (patch) | |
tree | ccbd420f78dba2d72eb9a697e9b251b8bdd80ebd /arch/x86/net | |
parent | bpf: Add BPF_MAP_GET_FD_BY_ID (diff) | |
download | linux-783d28dd11f68fb25d1f2e0de7c42336394ef128.tar.xz linux-783d28dd11f68fb25d1f2e0de7c42336394ef128.zip |
bpf: Add jited_len to struct bpf_prog
Add jited_len to struct bpf_prog. It will be
useful for the struct bpf_prog_info which will
be added in the later patch.
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/x86/net')
-rw-r--r-- | arch/x86/net/bpf_jit_comp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c index 617eac9c4511..e1324f280e06 100644 --- a/arch/x86/net/bpf_jit_comp.c +++ b/arch/x86/net/bpf_jit_comp.c @@ -1167,6 +1167,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) bpf_jit_binary_lock_ro(header); prog->bpf_func = (void *)image; prog->jited = 1; + prog->jited_len = proglen; } else { prog = orig_prog; } |