]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw_ethtool: allow res split while down
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Mon, 8 Jul 2019 21:34:31 +0000 (00:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jul 2019 21:58:04 +0000 (14:58 -0700)
commit3467a57a8df6fc7903493da56063051e7f8039e4
tree32987e4bad6039c67d6f3a15e6fc6d7a2203f2fd
parent16e2318dc1a275e2e2bbb577bcf5da4c4343e107
net: ethernet: ti: cpsw_ethtool: allow res split while down

That's possible to set channel num while interfaces are down. When
interface gets up it should resplit budget. This resplit can happen
after phy is up but only if speed is changed, so should be set before
this, for this allow it to happen while changing number of channels,
when interfaces are down.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw_ethtool.c