]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit32b78d8563c57fc1d68ae73a5ae15359cb243f89
treec5cc44138913ffefa29405591dfcb4ff853c7b37
parent32b5f2d1f9bf653491b6c03a55e26177211f8218
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