]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: combine budget and weight split and check
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Sat, 10 Dec 2016 12:23:48 +0000 (14:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Dec 2016 22:29:47 +0000 (17:29 -0500)
commit4b0d9d092d711bfba2ff2c5f02cba3006c366c7d
treec5cc44138913ffefa29405591dfcb4ff853c7b37
parentfd2ed688e9c786764c6f3a2c39ea12570f7498cd
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>
drivers/net/ethernet/ti/cpsw.c