Signed-off-by: Nicolas Schichan <nschic...@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 67a2d44..fe28beb 100644
--- a/arch/arm/net/bpf_jit_32.c
+++ b/arch/arm/net/bpf_jit_32.c
@@ -884,6 +884,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 netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to