]> 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)
commitc5d492768d92977d4788a9e71b8583ad7964a2d5
treec5cc44138913ffefa29405591dfcb4ff853c7b37
parent5323b3d10e1fd3e53e0e8c0865fcb369f779ede5
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