diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-06-23 05:38:50 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-06-26 05:48:20 -0400 |
commit | 9eebfe478d1b83389c3ac1bd73a45b6665e356db (patch) | |
tree | 716b5f390e6594dcbcb6a7fcf86fe91ed8d908c4 /arch/mips | |
parent | 9ee1606e8a6316287029c86ef48ddcfe4dec595d (diff) |
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 <markos.chandras@imgtec.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Daniel Borkmann <dborkman@redhat.com>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: netdev@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7125/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/net/bpf_jit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/net/bpf_jit.c b/arch/mips/net/bpf_jit.c index fe5041bdc6fb..8cae27af03da 100644 --- a/arch/mips/net/bpf_jit.c +++ b/arch/mips/net/bpf_jit.c | |||
@@ -1322,6 +1322,8 @@ jmp_cmp: | |||
1322 | emit_andi(r_A, r_s0, VLAN_TAG_PRESENT, ctx); | 1322 | emit_andi(r_A, r_s0, VLAN_TAG_PRESENT, ctx); |
1323 | break; | 1323 | break; |
1324 | case BPF_ANC | SKF_AD_PKTTYPE: | 1324 | case BPF_ANC | SKF_AD_PKTTYPE: |
1325 | ctx->flags |= SEEN_SKB; | ||
1326 | |||
1325 | off = pkt_type_offset(); | 1327 | off = pkt_type_offset(); |
1326 | 1328 | ||
1327 | if (off < 0) | 1329 | if (off < 0) |