From: Markos Chandras Date: Mon, 23 Jun 2014 09:38:50 +0000 (+0100) Subject: MIPS: bpf: Add SEEN_SKB to flags when looking for the PKT_TYPE X-Git-Tag: v4.9.8~6172^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9eebfe478d1b83389c3ac1bd73a45b6665e356db;p=platform%2Fkernel%2Flinux-rpi3.git MIPS: bpf: Add SEEN_SKB to flags when looking for the PKT_TYPE The SKF_AD_PKTTYPE uses the skb pointer so make sure it's in the flags so it will be initialized in time. Signed-off-by: Markos Chandras Cc: David S. Miller Cc: Daniel Borkmann Cc: Alexei Starovoitov Cc: netdev@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7125/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/net/bpf_jit.c b/arch/mips/net/bpf_jit.c index fe5041b..8cae27a 100644 --- a/arch/mips/net/bpf_jit.c +++ b/arch/mips/net/bpf_jit.c @@ -1322,6 +1322,8 @@ jmp_cmp: emit_andi(r_A, r_s0, VLAN_TAG_PRESENT, ctx); break; case BPF_ANC | SKF_AD_PKTTYPE: + ctx->flags |= SEEN_SKB; + off = pkt_type_offset(); if (off < 0)