[PATCH 1/3] powerpc64/bpf: Store temp registers' bpf to ppc mapping
Naveen N. Rao
naveen.n.rao at linux.vnet.ibm.com
Sat Jan 8 04:13:32 AEDT 2022
Jordan Niethe wrote:
> In bpf_jit_build_body(), the mapping of TMP_REG_1 and TMP_REG_2's bpf
> register to ppc register is evalulated at every use despite not
> changing. Instead, determine the ppc register once and store the result.
> This will be more useful when a later patch introduces a more complex
> mapping from bpf registers to ppc registers.
>
> Signed-off-by: Jordan Niethe <jniethe5 at gmail.com>
> ---
> arch/powerpc/net/bpf_jit_comp64.c | 163 +++++++++++++-----------------
> 1 file changed, 69 insertions(+), 94 deletions(-)
I know this is eons ago and this patch will need updating, but if you
intend to revive this:
Acked-by: Naveen N. Rao <naveen.n.rao at linux.vnet.ibm.com>
Thanks,
Naveen
More information about the Linuxppc-dev
mailing list