Commit 3d3ba568 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: ethoc: Implement ethtool::nway_reset

Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are
already using dev->phydev all over the place so this comes for free.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cab247e9
...@@ -966,6 +966,7 @@ static int ethoc_set_ringparam(struct net_device *dev, ...@@ -966,6 +966,7 @@ static int ethoc_set_ringparam(struct net_device *dev,
const struct ethtool_ops ethoc_ethtool_ops = { const struct ethtool_ops ethoc_ethtool_ops = {
.get_regs_len = ethoc_get_regs_len, .get_regs_len = ethoc_get_regs_len,
.get_regs = ethoc_get_regs, .get_regs = ethoc_get_regs,
.nway_reset = phy_ethtool_nway_reset,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
.get_ringparam = ethoc_get_ringparam, .get_ringparam = ethoc_get_ringparam,
.set_ringparam = ethoc_set_ringparam, .set_ringparam = ethoc_set_ringparam,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment