projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ece5d4c
)
net_sched: sch_hhf: defer skb freeing
author
Eric Dumazet
<
[email protected]
>
Tue, 14 Jun 2016 03:21:55 +0000
(20:21 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 15 Jun 2016 21:08:35 +0000
(14:08 -0700)
Both hhf_reset() and hhf_change() can use rtnl_kfree_skbs()
Signed-off-by: Eric Dumazet <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/sched/sch_hhf.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_hhf.c
b/net/sched/sch_hhf.c
index c51791848a386737b1510f377760a7b5719e21f5..c44593b8e65a885727c4e1bd11971db6806a446c 100644
(file)
--- 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);