aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r--drivers/net/sky2.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index a70bcbcf8a16..fe0e7560d236 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -3190,9 +3190,14 @@ static void sky2_set_msglevel(struct net_device *netdev, u32 value)
3190 sky2->msg_enable = value; 3190 sky2->msg_enable = value;
3191} 3191}
3192 3192
3193static int sky2_get_stats_count(struct net_device *dev) 3193static int sky2_get_sset_count(struct net_device *dev, int sset)
3194{ 3194{
3195 return ARRAY_SIZE(sky2_stats); 3195 switch (sset) {
3196 case ETH_SS_STATS:
3197 return ARRAY_SIZE(sky2_stats);
3198 default:
3199 return -EOPNOTSUPP;
3200 }
3196} 3201}
3197 3202
3198static void sky2_get_ethtool_stats(struct net_device *dev, 3203static void sky2_get_ethtool_stats(struct net_device *dev,
@@ -3723,7 +3728,7 @@ static const struct ethtool_ops sky2_ethtool_ops = {
3723 .get_pauseparam = sky2_get_pauseparam, 3728 .get_pauseparam = sky2_get_pauseparam,
3724 .set_pauseparam = sky2_set_pauseparam, 3729 .set_pauseparam = sky2_set_pauseparam,
3725 .phys_id = sky2_phys_id, 3730 .phys_id = sky2_phys_id,
3726 .get_stats_count = sky2_get_stats_count, 3731 .get_sset_count = sky2_get_sset_count,
3727 .get_ethtool_stats = sky2_get_ethtool_stats, 3732 .get_ethtool_stats = sky2_get_ethtool_stats,
3728}; 3733};
3729 3734