Browse Source

nfp: implement ethtool .get_link() callback

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>
Jakub Kicinski 9 years ago
parent
commit
2370def2e4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c

+ 1 - 0
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c

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