projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1447f93
)
ARM: net: add support for BPF_ANC | SKF_AD_PAY_OFFSET in ARM JIT.
author
Nicolas Schichan
<nschichan@freebox.fr>
Mon, 27 Jul 2015 13:06:50 +0000
(15:06 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 27 Jul 2015 21:57:40 +0000
(14:57 -0700)
Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/net/bpf_jit_32.c
patch
|
blob
|
history
diff --git
a/arch/arm/net/bpf_jit_32.c
b/arch/arm/net/bpf_jit_32.c
index 6ff248ca36d95b3ec17b273c5bdd0a0981280602..3c73caf6e09bb2008f5de7ace70b40ad9d06928d 100644
(file)
--- 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.