Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1186069
| From | Nicolas Schichan <nschichan@freebox.fr> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/6] ARM: net: add support for BPF_ANC | SKF_AD_PAY_OFFSET in ARM JIT. |
| Date | 2015-07-16 18:50 +0200 |
| Message-ID | <pMUwb-3X1-27@gated-at.bofh.it> (permalink) |
| References | <pMUwa-3X1-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Signed-off-by: Nicolas Schichan <nschichan@freebox.fr> --- arch/arm/net/bpf_jit_32.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] BPF JIT fixes and features for ARM Nicolas Schichan <nschichan@freebox.fr> - 2015-07-16 18:50 +0200 [PATCH 2/6] ARM: net: handle negative offsets in BPF JIT. Nicolas Schichan <nschichan@freebox.fr> - 2015-07-16 18:50 +0200 [PATCH 5/6] ARM: net: add support for BPF_ANC | SKF_AD_PAY_OFFSET in ARM JIT. Nicolas Schichan <nschichan@freebox.fr> - 2015-07-16 18:50 +0200 Re: [PATCH 0/6] BPF JIT fixes and features for ARM Alexei Starovoitov <ast@plumgrid.com> - 2015-07-16 19:40 +0200
csiph-web