]> git.proxmox.com Git - mirror_iproute2.git/commit
Fixed 'tc qdisc show' for tbf when latency<0
authorSergey V. Lobanov <sergey@lobanov.in>
Sat, 10 May 2014 23:01:14 +0000 (03:01 +0400)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 29 May 2014 00:08:16 +0000 (17:08 -0700)
commit3ff10e82c135ba1b7ddd22ea15dda5ae0c2e78c1
tree2458e93645a97942addf4206f30d1d1d7add7241
parent2b70fe156b7198ee1cbe34610025c3a86461ed02
Fixed 'tc qdisc show' for tbf when latency<0

When limit<burst latency becomes <0, for example:
 # tc qdisc add dev eth0 root handle 1: tbf limit 100K burst 256K rate 256kbit
 # tc qdisc show
 qdisc tbf 1: dev eth0 root refcnt 2 rate 256Kbit burst 256Kb lat 4290.0s

If latency<0 there is no reason to show it. Limit will be printed instead of
latency when latency<0:
 # tc qdisc show
 qdisc tbf 1: dev eth0 root refcnt 2 rate 256Kbit burst 256Kb limit 100Kb

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
tc/q_tbf.c