projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f08a9a
)
net_sched: sch_pie: defer skb freeing
author
Eric Dumazet
<edumazet@google.com>
Tue, 14 Jun 2016 03:21:58 +0000
(20:21 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 15 Jun 2016 21:08:36 +0000
(14:08 -0700)
pie_change() can use rtnl_qdisc_drop() to benefit from
deferred freeing.
pie_reset() is already using qdisc_reset_queue()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_pie.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/sch_pie.c
b/net/sched/sch_pie.c
index 71ae3b9629f94f8520e557f21962fc9ab34366fb..912a46a5d02e7f68627206b3569a928daf272d01 100644
(file)
--- a/
net/sched/sch_pie.c
+++ b/
net/sched/sch_pie.c
@@
-234,7
+234,7
@@
static int pie_change(struct Qdisc *sch, struct nlattr *opt)
dropped += qdisc_pkt_len(skb);
qdisc_qstats_backlog_dec(sch, skb);
- qdisc_drop(skb, sch);
+
rtnl_
qdisc_drop(skb, sch);
}
qdisc_tree_reduce_backlog(sch, qlen - sch->q.qlen, dropped);