diff options
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index d6c7ac68f6ea..5506f870037f 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -7855,10 +7855,13 @@ static void niu_get_strings(struct net_device *dev, u32 stringset, u8 *data) | |||
7855 | } | 7855 | } |
7856 | } | 7856 | } |
7857 | 7857 | ||
7858 | static int niu_get_stats_count(struct net_device *dev) | 7858 | static int niu_get_sset_count(struct net_device *dev, int stringset) |
7859 | { | 7859 | { |
7860 | struct niu *np = netdev_priv(dev); | 7860 | struct niu *np = netdev_priv(dev); |
7861 | 7861 | ||
7862 | if (stringset != ETH_SS_STATS) | ||
7863 | return -EINVAL; | ||
7864 | |||
7862 | return ((np->flags & NIU_FLAGS_XMAC ? | 7865 | return ((np->flags & NIU_FLAGS_XMAC ? |
7863 | NUM_XMAC_STAT_KEYS : | 7866 | NUM_XMAC_STAT_KEYS : |
7864 | NUM_BMAC_STAT_KEYS) + | 7867 | NUM_BMAC_STAT_KEYS) + |
@@ -7978,7 +7981,7 @@ static const struct ethtool_ops niu_ethtool_ops = { | |||
7978 | .get_settings = niu_get_settings, | 7981 | .get_settings = niu_get_settings, |
7979 | .set_settings = niu_set_settings, | 7982 | .set_settings = niu_set_settings, |
7980 | .get_strings = niu_get_strings, | 7983 | .get_strings = niu_get_strings, |
7981 | .get_stats_count = niu_get_stats_count, | 7984 | .get_sset_count = niu_get_sset_count, |
7982 | .get_ethtool_stats = niu_get_ethtool_stats, | 7985 | .get_ethtool_stats = niu_get_ethtool_stats, |
7983 | .phys_id = niu_phys_id, | 7986 | .phys_id = niu_phys_id, |
7984 | .get_rxnfc = niu_get_nfc, | 7987 | .get_rxnfc = niu_get_nfc, |