]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: allow 0% for percent options
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 17 May 2018 23:20:50 +0000 (16:20 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 17 May 2018 23:20:50 +0000 (16:20 -0700)
commit405e0c4ffe7a410b09201db42955089fb0033776
tree069cba51f4ea34cabf34d88a3d4734c4fe5e5edf
parent4f59f4a5afbb14ee7556f18b0d0663c2db5c0416
tc: allow 0% for percent options

Allowing 0% is sometimes useful for example in netem loss and drop
or perhaps dropping all traffic in a HTB bin.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199745
Reported-by: stuartmarsden@gmail.com
Fixes: 927e3cfb52b5 ("tc: B.W limits can now be specified in %.")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/utils.c