summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorCong Wang2019-05-04 20:43:42 +0200
committerDavid S. Miller2019-05-06 06:55:20 +0200
commitb362487a3b3524601a60518ae76ffd02a540994b (patch)
treed29f084d23ff97fd573c616d7391420d112a0e2f /tools/testing
parentr8169: move EEE LED config to rtl8168_config_eee_mac (diff)
downloadkernel-qcow2-linux-b362487a3b3524601a60518ae76ffd02a540994b.tar.gz
kernel-qcow2-linux-b362487a3b3524601a60518ae76ffd02a540994b.tar.xz
kernel-qcow2-linux-b362487a3b3524601a60518ae76ffd02a540994b.zip
sch_htb: redefine htb qdisc overlimits
In commit 3c75f6ee139d ("net_sched: sch_htb: add per class overlimits counter") we added an overlimits counter for each HTB class which could properly reflect how many times we use up all the bandwidth on each class. However, the overlimits counter in HTB qdisc does not, it is way bigger than the sum of each HTB class. In fact, this qdisc overlimits counter increases when we have no skb to dequeue, which happens more often than we run out of bandwidth. It makes more sense to make this qdisc overlimits counter just be a sum of each HTB class, in case people still get confused. I have verified this patch with one single HTB class, where HTB qdisc counters now always match HTB class counters as expected. Eric suggested we could fold this field into 'direct_pkts' as we only use its 32bit on 64bit CPU, this saves one cache line. Cc: Eric Dumazet <edumazet@google.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions