commit 0697bf778d48d155ef48f652cee8f103db3dcedb Author: Jamal Hadi Salim Date: Fri Jun 4 08:39:47 2010 -0400 net sched: make pedit check for clones instead 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 diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index fdbd0b7..8d15caf 100644 --- 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; u8 *pptr; - 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; }