aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atl1/atl1_ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/atl1/atl1_ethtool.c')
-rw-r--r--drivers/net/atl1/atl1_ethtool.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/atl1/atl1_ethtool.c b/drivers/net/atl1/atl1_ethtool.c
index 53353b60a9c8..68a83be843ab 100644
--- a/drivers/net/atl1/atl1_ethtool.c
+++ b/drivers/net/atl1/atl1_ethtool.c
@@ -88,9 +88,14 @@ static void atl1_get_ethtool_stats(struct net_device *netdev,
88 88
89} 89}
90 90
91static int atl1_get_stats_count(struct net_device *netdev) 91static int atl1_get_sset_count(struct net_device *netdev, int sset)
92{ 92{
93 return ARRAY_SIZE(atl1_gstrings_stats); 93 switch (sset) {
94 case ETH_SS_STATS:
95 return ARRAY_SIZE(atl1_gstrings_stats);
96 default:
97 return -EOPNOTSUPP;
98 }
94} 99}
95 100
96static int atl1_get_settings(struct net_device *netdev, 101static int atl1_get_settings(struct net_device *netdev,
@@ -495,6 +500,6 @@ const struct ethtool_ops atl1_ethtool_ops = {
495 .get_strings = atl1_get_strings, 500 .get_strings = atl1_get_strings,
496 .nway_reset = atl1_nway_reset, 501 .nway_reset = atl1_nway_reset,
497 .get_ethtool_stats = atl1_get_ethtool_stats, 502 .get_ethtool_stats = atl1_get_ethtool_stats,
498 .get_stats_count = atl1_get_stats_count, 503 .get_sset_count = atl1_get_sset_count,
499 .set_tso = ethtool_op_set_tso, 504 .set_tso = ethtool_op_set_tso,
500}; 505};