mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-14 00:24:15 +08:00
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>
This commit is contained in:
parent
962fb61890
commit
608ef6202f
@ -620,7 +620,6 @@ int cpsw_set_channels_common(struct net_device *ndev,
|
||||
}
|
||||
}
|
||||
|
||||
if (cpsw->usage_count)
|
||||
cpsw_split_res(cpsw);
|
||||
|
||||
ret = cpsw_resume_data_pass(ndev);
|
||||
|
Loading…
Reference in New Issue
Block a user