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:
9ee1606
)
MIPS: bpf: Add SEEN_SKB to flags when looking for the PKT_TYPE
author
Markos Chandras
<
[email protected]
>
Mon, 23 Jun 2014 09:38:50 +0000
(10:38 +0100)
committer
Ralf Baechle
<
[email protected]
>
Thu, 26 Jun 2014 09:48:20 +0000
(10:48 +0100)
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 <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
Cc: Daniel Borkmann <
[email protected]
>
Cc: Alexei Starovoitov <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7125/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/net/bpf_jit.c
patch
|
blob
|
history
diff --git
a/arch/mips/net/bpf_jit.c
b/arch/mips/net/bpf_jit.c
index fe5041bdc6fb2b9304f3ee9eda5819cdf25c09c9..8cae27af03dac7a4b3f2d777e9f42c0c29f88d71 100644
(file)
--- 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)