Skip to content

Commit

Permalink
net: ethernet: ti: cpsw_ethtool: allow res split while down
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ikhorn authored and davem330 committed Jul 8, 2019
1 parent 962fb61 commit 608ef62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/ti/cpsw_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,7 @@ int cpsw_set_channels_common(struct net_device *ndev,
}
}

if (cpsw->usage_count)
cpsw_split_res(cpsw);
cpsw_split_res(cpsw);

ret = cpsw_resume_data_pass(ndev);
if (!ret)
Expand Down

0 comments on commit 608ef62

Please sign in to comment.