]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
nfp: implement ethtool .get_link() callback
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 29 Jun 2016 20:55:55 +0000 (21:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jun 2016 13:12:14 +0000 (09:12 -0400)
Point the ethtool .get_link() callback to the standard
ethtool_op_get_link() implementation.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c

index ccfef1f17627315e2098de350fb4f5ce3f5414f1..7d7933d00b8f15107868dea795de73a6f61d0a07 100644 (file)
@@ -605,6 +605,7 @@ static int nfp_net_set_coalesce(struct net_device *netdev,
 
 static const struct ethtool_ops nfp_net_ethtool_ops = {
        .get_drvinfo            = nfp_net_get_drvinfo,
+       .get_link               = ethtool_op_get_link,
        .get_ringparam          = nfp_net_get_ringparam,
        .set_ringparam          = nfp_net_set_ringparam,
        .get_strings            = nfp_net_get_strings,