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_ipt.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_ipt.c')
-rw-r--r-- | net/sched/act_ipt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index 0fb9e3f567e6..e0f6de64afec 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c | |||
@@ -207,10 +207,8 @@ static int tcf_ipt(struct sk_buff *skb, const struct tc_action *a, | |||
207 | struct tcf_ipt *ipt = a->priv; | 207 | struct tcf_ipt *ipt = a->priv; |
208 | struct xt_action_param par; | 208 | struct xt_action_param par; |
209 | 209 | ||
210 | if (skb_cloned(skb)) { | 210 | if (skb_unclone(skb, GFP_ATOMIC)) |
211 | if (pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) | 211 | return TC_ACT_UNSPEC; |
212 | return TC_ACT_UNSPEC; | ||
213 | } | ||
214 | 212 | ||
215 | spin_lock(&ipt->tcf_lock); | 213 | spin_lock(&ipt->tcf_lock); |
216 | 214 | ||