aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/ethtool.c')
-rw-r--r--drivers/net/sfc/ethtool.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c
index 22026bfbc4c1..81b7f39ca5fb 100644
--- a/drivers/net/sfc/ethtool.c
+++ b/drivers/net/sfc/ethtool.c
@@ -242,6 +242,20 @@ static void efx_ethtool_get_drvinfo(struct net_device *net_dev,
242 strlcpy(info->bus_info, pci_name(efx->pci_dev), sizeof(info->bus_info)); 242 strlcpy(info->bus_info, pci_name(efx->pci_dev), sizeof(info->bus_info));
243} 243}
244 244
245static int efx_ethtool_get_regs_len(struct net_device *net_dev)
246{
247 return efx_nic_get_regs_len(netdev_priv(net_dev));
248}
249
250static void efx_ethtool_get_regs(struct net_device *net_dev,
251 struct ethtool_regs *regs, void *buf)
252{
253 struct efx_nic *efx = netdev_priv(net_dev);
254
255 regs->version = efx->type->revision;
256 efx_nic_get_regs(efx, buf);
257}
258
245/** 259/**
246 * efx_fill_test - fill in an individual self-test entry 260 * efx_fill_test - fill in an individual self-test entry
247 * @test_index: Index of the test 261 * @test_index: Index of the test
@@ -834,6 +848,8 @@ const struct ethtool_ops efx_ethtool_ops = {
834 .get_settings = efx_ethtool_get_settings, 848 .get_settings = efx_ethtool_get_settings,
835 .set_settings = efx_ethtool_set_settings, 849 .set_settings = efx_ethtool_set_settings,
836 .get_drvinfo = efx_ethtool_get_drvinfo, 850 .get_drvinfo = efx_ethtool_get_drvinfo,
851 .get_regs_len = efx_ethtool_get_regs_len,
852 .get_regs = efx_ethtool_get_regs,
837 .nway_reset = efx_ethtool_nway_reset, 853 .nway_reset = efx_ethtool_nway_reset,
838 .get_link = efx_ethtool_get_link, 854 .get_link = efx_ethtool_get_link,
839 .get_eeprom_len = efx_ethtool_get_eeprom_len, 855 .get_eeprom_len = efx_ethtool_get_eeprom_len,