Re: [PATCH 3/5] net: ethernet: ti: cpsw: combine budget and weight split and check

2016-12-10 Thread David Miller
From: Ivan Khoronzhuk Date: Sat, 10 Dec 2016 14:23:48 +0200 > 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 maxim

[PATCH 3/5] net: ethernet: ti: cpsw: combine budget and weight split and check

2016-12-10 Thread Ivan Khoronzhuk
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 --- drivers/net/et