diff options
Diffstat (limited to 'drivers/net/8139too.c')
-rw-r--r-- | drivers/net/8139too.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index d3088a786e26..973b684c11e3 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -2406,9 +2406,14 @@ static void rtl8139_get_regs(struct net_device *dev, struct ethtool_regs *regs, | |||
2406 | } | 2406 | } |
2407 | #endif /* CONFIG_8139TOO_MMIO */ | 2407 | #endif /* CONFIG_8139TOO_MMIO */ |
2408 | 2408 | ||
2409 | static int rtl8139_get_stats_count(struct net_device *dev) | 2409 | static int rtl8139_get_sset_count(struct net_device *dev, int sset) |
2410 | { | 2410 | { |
2411 | return RTL_NUM_STATS; | 2411 | switch (sset) { |
2412 | case ETH_SS_STATS: | ||
2413 | return RTL_NUM_STATS; | ||
2414 | default: | ||
2415 | return -EOPNOTSUPP; | ||
2416 | } | ||
2412 | } | 2417 | } |
2413 | 2418 | ||
2414 | static void rtl8139_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data) | 2419 | static void rtl8139_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data) |
@@ -2439,7 +2444,7 @@ static const struct ethtool_ops rtl8139_ethtool_ops = { | |||
2439 | .get_wol = rtl8139_get_wol, | 2444 | .get_wol = rtl8139_get_wol, |
2440 | .set_wol = rtl8139_set_wol, | 2445 | .set_wol = rtl8139_set_wol, |
2441 | .get_strings = rtl8139_get_strings, | 2446 | .get_strings = rtl8139_get_strings, |
2442 | .get_stats_count = rtl8139_get_stats_count, | 2447 | .get_sset_count = rtl8139_get_sset_count, |
2443 | .get_ethtool_stats = rtl8139_get_ethtool_stats, | 2448 | .get_ethtool_stats = rtl8139_get_ethtool_stats, |
2444 | }; | 2449 | }; |
2445 | 2450 | ||