]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: net: bpf: use ldr instructions with shifted rm register
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 11 Jul 2018 09:32:17 +0000 (10:32 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 12 Jul 2018 18:45:23 +0000 (20:45 +0200)
commit5cdc7224faa5697512ee55ac0af71cc1e5f95fb3
tree42ca3eed1a541f1ae1eb283f7cd36d6e122524e1
parentc46e903b8d1d825cbcbcfa9de3486fd88890703e
ARM: net: bpf: use ldr instructions with shifted rm register

Rather than pre-shifting the rm register for the ldr in the tail call,
shift it in the load instruction.  This eliminates one unnecessary
instruction.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
arch/arm/net/bpf_jit_32.c
arch/arm/net/bpf_jit_32.h