mirror of https://gitee.com/openkylin/linux.git
net_sched: sch_fq: defer skb freeing
sfq_reset() can use rtnl_kfree_skbs() instead of kfree_skb() Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
db4879d93c
commit
fea024784f
|
@ -520,7 +520,7 @@ sfq_reset(struct Qdisc *sch)
|
|||
struct sk_buff *skb;
|
||||
|
||||
while ((skb = sfq_dequeue(sch)) != NULL)
|
||||
kfree_skb(skb);
|
||||
rtnl_kfree_skbs(skb, skb);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue