diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-02-14 04:44:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-15 15:10:37 -0500 |
commit | 14bbd6a565e1bcdc240d44687edb93f721cfdf99 (patch) | |
tree | b2001bb985856d2177212451273d1f6ebcc55035 /net/sched/act_pedit.c | |
parent | d887199dc28c46788b155b234274d5ff41afed8e (diff) |
net: Add skb_unclone() helper function.
This function will be used in next GRE_GSO patch. This patch does
not change any functionality.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Diffstat (limited to 'net/sched/act_pedit.c')
-rw-r--r-- | net/sched/act_pedit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index 0c3faddf3f2c..7ed78c9e505c 100644 --- a/net/sched/act_pedit.c +++ b/net/sched/act_pedit.c | |||
@@ -131,8 +131,7 @@ static int tcf_pedit(struct sk_buff *skb, const struct tc_action *a, | |||
131 | int i, munged = 0; | 131 | int i, munged = 0; |
132 | unsigned int off; | 132 | unsigned int off; |
133 | 133 | ||
134 | if (skb_cloned(skb) && | 134 | if (skb_unclone(skb, GFP_ATOMIC)) |
135 | pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) | ||
136 | return p->tcf_action; | 135 | return p->tcf_action; |
137 | 136 | ||
138 | off = skb_network_offset(skb); | 137 | off = skb_network_offset(skb); |