projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net_sched: factorize qdisc stats handling
[firefly-linux-kernel-4.4.55.git]
/
net
/
sched
/
sch_prio.c
diff --git
a/net/sched/sch_prio.c
b/net/sched/sch_prio.c
index b1c95bce33ce6f2f8a360e93ab234f8db1ab42c9..966158d49dd105ce882ece6a6ccd6f072f5676ca 100644
(file)
--- a/
net/sched/sch_prio.c
+++ b/
net/sched/sch_prio.c
@@
-84,8
+84,7
@@
prio_enqueue(struct sk_buff *skb, struct Qdisc *sch)
ret = qdisc_enqueue(skb, qdisc);
if (ret == NET_XMIT_SUCCESS) {
- sch->bstats.bytes += qdisc_pkt_len(skb);
- sch->bstats.packets++;
+ qdisc_bstats_update(sch, skb);
sch->q.qlen++;
return NET_XMIT_SUCCESS;
}