Commits
Ivan Khoronzhuk committed 7c0facd4307
net: ethernet: ti: cpsw: combine budget and weight split and check commit 32b78d8563c57fc1d68ae73a5ae15359cb243f89 upstream. 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> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>