summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/net
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2017-06-05 21:15:51 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-06 21:41:24 +0200
commit783d28dd11f68fb25d1f2e0de7c42336394ef128 (patch)
treeccbd420f78dba2d72eb9a697e9b251b8bdd80ebd /arch/powerpc/net
parentbpf: Add BPF_MAP_GET_FD_BY_ID (diff)
downloadlinux-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/powerpc/net')
-rw-r--r--arch/powerpc/net/bpf_jit_comp64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/net/bpf_jit_comp64.c b/arch/powerpc/net/bpf_jit_comp64.c
index a01366584a4b..861c5af1c9c4 100644
--- a/arch/powerpc/net/bpf_jit_comp64.c
+++ b/arch/powerpc/net/bpf_jit_comp64.c
@@ -1052,6 +1052,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
fp->bpf_func = (void *)image;
fp->jited = 1;
+ fp->jited_len = alloclen;
bpf_flush_icache(bpf_hdr, (u8 *)bpf_hdr + (bpf_hdr->pages * PAGE_SIZE));