summaryrefslogtreecommitdiffstats
path: root/arch/arm/net
diff options
context:
space:
mode:
authorNicolas Schichan <nschichan@freebox.fr>2015-07-27 15:06:50 +0200
committerDavid S. Miller <davem@davemloft.net>2015-07-27 14:57:40 -0700
commit303249ab168f58ee52c502389b9a8046af78d142 (patch)
treedb535398213428f2f81f7c8071ba000b703d0408 /arch/arm/net
parent1447f93f22add339ee63d1a7015309d9fbfa47e8 (diff)
downloadop-kernel-dev-303249ab168f58ee52c502389b9a8046af78d142.zip
op-kernel-dev-303249ab168f58ee52c502389b9a8046af78d142.tar.gz
ARM: net: add support for BPF_ANC | SKF_AD_PAY_OFFSET 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')
-rw-r--r--arch/arm/net/bpf_jit_32.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c
index 6ff248c..3c73caf 100644
--- a/arch/arm/net/bpf_jit_32.c
+++ b/arch/arm/net/bpf_jit_32.c
@@ -915,6 +915,14 @@ b_epilogue:
off = offsetof(struct sk_buff, queue_mapping);
emit(ARM_LDRH_I(r_A, r_skb, off), ctx);
break;
+ case BPF_ANC | SKF_AD_PAY_OFFSET:
+ ctx->seen |= SEEN_SKB | SEEN_CALL;
+
+ emit(ARM_MOV_R(ARM_R0, r_skb), ctx);
+ emit_mov_i(ARM_R3, (unsigned int)skb_get_poff, ctx);
+ emit_blx_r(ARM_R3, ctx);
+ emit(ARM_MOV_R(r_A, ARM_R0), ctx);
+ break;
case BPF_LDX | BPF_W | BPF_ABS:
/*
* load a 32bit word from struct seccomp_data.
OpenPOWER on IntegriCloud