]> git.karo-electronics.de Git - linux-beck.git/commitdiff
net: ethoc: Implement ethtool::nway_reset
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 15 Nov 2016 19:19:46 +0000 (11:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 18:44:00 +0000 (13:44 -0500)
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: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ethoc.c

index c044667a0a25ec6e5973f4ba1d15c4eb54b829d2..6456c180114bba6b7e9f2cca56bbe235f94b96ea 100644 (file)
@@ -966,6 +966,7 @@ static int ethoc_set_ringparam(struct net_device *dev,
 const struct ethtool_ops ethoc_ethtool_ops = {
        .get_regs_len = ethoc_get_regs_len,
        .get_regs = ethoc_get_regs,
+       .nway_reset = phy_ethtool_nway_reset,
        .get_link = ethtool_op_get_link,
        .get_ringparam = ethoc_get_ringparam,
        .set_ringparam = ethoc_set_ringparam,