]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, arm64: save 4 bytes in prologue when ebpf insns came from cbpf
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 14 May 2018 21:22:33 +0000 (23:22 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 May 2018 02:11:45 +0000 (19:11 -0700)
commitf7fcf337b0cdfb808bd617b6d541a4e038b075bd
tree21af064891911296afea5e9193c902f848cc03fe
parent36b241c14b2a72ffae811e493f28fdcb1c638cb8
bpf, arm64: save 4 bytes in prologue when ebpf insns came from cbpf

We can trivially save 4 bytes in prologue for cBPF since tail calls
can never be used from there. The register push/pop is pairwise,
here, x25 (fp) and x26 (tcc), so no point in changing that, only
reset to zero is not needed.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/arm64/net/bpf_jit_comp.c