diff options
author | Nicolas Schichan <nschichan@freebox.fr> | 2015-07-27 16:06:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-28 00:57:41 +0300 |
commit | 5bf705b43b7243c68e831ed3072db2ed00edc7fa (patch) | |
tree | 5abc52ad5c8911601ae06180ba123b9eeb997f66 /arch/arm/net/bpf_jit_32.h | |
parent | 303249ab168f58ee52c502389b9a8046af78d142 (diff) | |
download | linux-5bf705b43b7243c68e831ed3072db2ed00edc7fa.tar.xz |
ARM: net: add support for BPF_ANC | SKF_AD_HATYPE in ARM JIT.
Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm/net/bpf_jit_32.h')
-rw-r--r-- | arch/arm/net/bpf_jit_32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/net/bpf_jit_32.h b/arch/arm/net/bpf_jit_32.h index b2d7d92859d3..4b17d5ab652a 100644 --- a/arch/arm/net/bpf_jit_32.h +++ b/arch/arm/net/bpf_jit_32.h @@ -74,6 +74,7 @@ #define ARM_INST_LDRB_I 0x05d00000 #define ARM_INST_LDRB_R 0x07d00000 #define ARM_INST_LDRH_I 0x01d000b0 +#define ARM_INST_LDRH_R 0x019000b0 #define ARM_INST_LDR_I 0x05900000 #define ARM_INST_LDM 0x08900000 @@ -160,6 +161,8 @@ | (rm)) #define ARM_LDRH_I(rt, rn, off) (ARM_INST_LDRH_I | (rt) << 12 | (rn) << 16 \ | (((off) & 0xf0) << 4) | ((off) & 0xf)) +#define ARM_LDRH_R(rt, rn, rm) (ARM_INST_LDRH_R | (rt) << 12 | (rn) << 16 \ + | (rm)) #define ARM_LDM(rn, regs) (ARM_INST_LDM | (rn) << 16 | (regs)) |