projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2a0336
)
net sched: make pedit check for clones instead
author
jamal
<hadi@cyberus.ca>
Fri, 4 Jun 2010 02:43:06 +0000
(
02:43
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 7 Jun 2010 08:10:43 +0000
(
01:10
-0700)
Now that the core path doesnt set OK to munge we detect
writable skbs by looking to see if they are cloned.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_pedit.c
patch
|
blob
|
history
diff --git
a/net/sched/act_pedit.c
b/net/sched/act_pedit.c
index
50e3d94
..
a0593c9
100644
(file)
--- a/
net/sched/act_pedit.c
+++ b/
net/sched/act_pedit.c
@@
-127,8
+127,7
@@
static int tcf_pedit(struct sk_buff *skb, struct tc_action *a,
int i, munged = 0;
unsigned int off;
- if (!(skb->tc_verd & TC_OK2MUNGE)) {
- /* should we set skb->cloned? */
+ if (skb_cloned(skb)) {
if (pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) {
return p->tcf_action;
}