]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: net: bpf: provide accessor functions for BPF registers
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 11 Jul 2018 09:31:52 +0000 (10:31 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 12 Jul 2018 18:45:22 +0000 (20:45 +0200)
commitdf46be7f4baa469f6d2f4253b64aff97f49155bf
treef903af47f0d9e1c38b318b7eeba24579c7ae1b9b
parente913b6ff7f4136be452a50caa8ab2a98fa10ebda
ARM: net: bpf: provide accessor functions for BPF registers

Many of the code paths need to have knowledge about whether a register
is stacked or in a CPU register.  Move this decision making to a pair
of helper functions instead of having it scattered throughout the
code.

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