diff options
author | Eric Dumazet <edumazet@google.com> | 2016-06-14 06:21:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-16 00:08:35 +0300 |
commit | e7e424cdc4b2fcd7507b71d3a931708d11d5a61e (patch) | |
tree | fb97cd22f87cc54f78604a71152c6630e56a87f6 /net/sched | |
parent | ece5d4c723b69a4aa0cd1f545ebbdc3a37c80dc6 (diff) | |
download | linux-e7e424cdc4b2fcd7507b71d3a931708d11d5a61e.tar.xz |
net_sched: sch_hhf: defer skb freeing
Both hhf_reset() and hhf_change() can use rtnl_kfree_skbs()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_hhf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_hhf.c b/net/sched/sch_hhf.c index c51791848a38..c44593b8e65a 100644 --- a/net/sched/sch_hhf.c +++ b/net/sched/sch_hhf.c @@ -464,7 +464,7 @@ static void hhf_reset(struct Qdisc *sch) struct sk_buff *skb; while ((skb = hhf_dequeue(sch)) != NULL) - kfree_skb(skb); + rtnl_kfree_skbs(skb, skb); } static void *hhf_zalloc(size_t sz) @@ -574,7 +574,7 @@ static int hhf_change(struct Qdisc *sch, struct nlattr *opt) while (sch->q.qlen > sch->limit) { struct sk_buff *skb = hhf_dequeue(sch); - kfree_skb(skb); + rtnl_kfree_skbs(skb, skb); } qdisc_tree_reduce_backlog(sch, qlen - sch->q.qlen, prev_backlog - sch->qstats.backlog); |