diff options
Diffstat (limited to 'drivers/net/tc35815.c')
-rw-r--r-- | drivers/net/tc35815.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index df8237360f58..a679f4310ce1 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c | |||
@@ -2162,10 +2162,16 @@ static void tc35815_set_msglevel(struct net_device *dev, u32 datum) | |||
2162 | lp->msg_enable = datum; | 2162 | lp->msg_enable = datum; |
2163 | } | 2163 | } |
2164 | 2164 | ||
2165 | static int tc35815_get_stats_count(struct net_device *dev) | 2165 | static int tc35815_get_sset_count(struct net_device *dev, int sset) |
2166 | { | 2166 | { |
2167 | struct tc35815_local *lp = dev->priv; | 2167 | struct tc35815_local *lp = dev->priv; |
2168 | return sizeof(lp->lstats) / sizeof(int); | 2168 | |
2169 | switch (sset) { | ||
2170 | case ETH_SS_STATS: | ||
2171 | return sizeof(lp->lstats) / sizeof(int); | ||
2172 | default: | ||
2173 | return -EOPNOTSUPP; | ||
2174 | } | ||
2169 | } | 2175 | } |
2170 | 2176 | ||
2171 | static void tc35815_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data) | 2177 | static void tc35815_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data) |
@@ -2200,7 +2206,7 @@ static const struct ethtool_ops tc35815_ethtool_ops = { | |||
2200 | .get_msglevel = tc35815_get_msglevel, | 2206 | .get_msglevel = tc35815_get_msglevel, |
2201 | .set_msglevel = tc35815_set_msglevel, | 2207 | .set_msglevel = tc35815_set_msglevel, |
2202 | .get_strings = tc35815_get_strings, | 2208 | .get_strings = tc35815_get_strings, |
2203 | .get_stats_count = tc35815_get_stats_count, | 2209 | .get_sset_count = tc35815_get_sset_count, |
2204 | .get_ethtool_stats = tc35815_get_ethtool_stats, | 2210 | .get_ethtool_stats = tc35815_get_ethtool_stats, |
2205 | }; | 2211 | }; |
2206 | 2212 | ||