Re: [PATCH bpf] bpf: powerpc64: optimize JIT passes for bpf function calls

2018-12-03 Thread Daniel Borkmann
On 12/03/2018 02:26 PM, Sandipan Das wrote: > Hi Daniel, > > On 03/12/18 6:18 PM, Daniel Borkmann wrote: >> >> Thanks for the patch, just to clarify, it's targeted at bpf-next and >> not bpf, correct? > > This patch is targeted at the bpf tree. Ok, thanks for clarifying, applied to bpf!

Re: [PATCH bpf] bpf: powerpc64: optimize JIT passes for bpf function calls

2018-12-03 Thread Sandipan Das
Hi Daniel, On 03/12/18 6:18 PM, Daniel Borkmann wrote: > > Thanks for the patch, just to clarify, it's targeted at bpf-next and > not bpf, correct? > This patch is targeted at the bpf tree. This depends on commit e2c95a61656d ("bpf, ppc64: generalize fetching subprog into

Re: [PATCH bpf] bpf: powerpc64: optimize JIT passes for bpf function calls

2018-12-03 Thread Daniel Borkmann
Hi Sandipan, On 12/03/2018 01:21 PM, Sandipan Das wrote: > Once the JITed images for each function in a multi-function program > are generated after the first three JIT passes, we only need to fix > the target address for the branch instruction corresponding to each > bpf-to-bpf function call. >

[PATCH bpf] bpf: powerpc64: optimize JIT passes for bpf function calls

2018-12-03 Thread Sandipan Das
Once the JITed images for each function in a multi-function program are generated after the first three JIT passes, we only need to fix the target address for the branch instruction corresponding to each bpf-to-bpf function call. This introduces the following optimizations for reducing the work