net_sched: sch_fq: defer skb freeing
authorEric Dumazet <edumazet@google.com>
Tue, 14 Jun 2016 03:21:59 +0000 (20:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2016 21:08:36 +0000 (14:08 -0700)
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>
net/sched/sch_sfq.c

index a2e0b855d1c8cff3fc995679d483760c78cf236b..57d118b41cad69743927dd91c5234444a809baf9 100644 (file)
@@ -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);
 }
 
 /*