commit | 32b78d8563c57fc1d68ae73a5ae15359cb243f89 | [log] [tgz] |
---|---|---|
author | Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> | Sat Dec 10 14:23:48 2016 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sat Dec 10 17:29:47 2016 -0500 |
tree | c5cc44138913ffefa29405591dfcb4ff853c7b37 | |
parent | 32b5f2d1f9bf653491b6c03a55e26177211f8218 [diff] |
net: ethernet: ti: cpsw: combine budget and weight split and check Re-split weight along with budget. It simplify code a little and update state after every rate change. Also it's necessarily to move arguments checks to this combined function. Replace maximum rate check for an interface on maximum possible rate. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>