projects
/
platform
/
kernel
/
linux-starfive.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
|
history
diff --git
a/net/sched/sch_pie.c
b/net/sched/sch_pie.c
index
71ae3b9
..
912a46a
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);