]> 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)
commit56ea6a8b4949c66d550d05e92da8ef4351b90027
tree21af064891911296afea5e9193c902f848cc03fe
parent6d2eea6fb0791bf191043a68937c9aa59c5ea678
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