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)
commit2b6958ef1151452cb2160fde75a5c5382b512c34
tree42ca3eed1a541f1ae1eb283f7cd36d6e122524e1
parent828e2b90e8e9b5bd844a25f22ceeb8df4dd18b07
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