Commit fea02478 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net_sched: sch_fq: defer skb freeing

sfq_reset() can use rtnl_kfree_skbs() instead of kfree_skb()
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db4879d9
...@@ -520,7 +520,7 @@ sfq_reset(struct Qdisc *sch) ...@@ -520,7 +520,7 @@ sfq_reset(struct Qdisc *sch)
struct sk_buff *skb; struct sk_buff *skb;
while ((skb = sfq_dequeue(sch)) != NULL) while ((skb = sfq_dequeue(sch)) != NULL)
kfree_skb(skb); rtnl_kfree_skbs(skb, skb);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment