diff options
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 04633ea55202..e22d06531051 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/drivers/net/cxgb3/cxgb3_main.c | |||
@@ -1131,9 +1131,14 @@ static char stats_strings[][ETH_GSTRING_LEN] = { | |||
1131 | 1131 | ||
1132 | }; | 1132 | }; |
1133 | 1133 | ||
1134 | static int get_stats_count(struct net_device *dev) | 1134 | static int get_sset_count(struct net_device *dev, int sset) |
1135 | { | 1135 | { |
1136 | return ARRAY_SIZE(stats_strings); | 1136 | switch (sset) { |
1137 | case ETH_SS_STATS: | ||
1138 | return ARRAY_SIZE(stats_strings); | ||
1139 | default: | ||
1140 | return -EOPNOTSUPP; | ||
1141 | } | ||
1137 | } | 1142 | } |
1138 | 1143 | ||
1139 | #define T3_REGMAP_SIZE (3 * 1024) | 1144 | #define T3_REGMAP_SIZE (3 * 1024) |
@@ -1640,7 +1645,7 @@ static const struct ethtool_ops cxgb_ethtool_ops = { | |||
1640 | .get_strings = get_strings, | 1645 | .get_strings = get_strings, |
1641 | .phys_id = cxgb3_phys_id, | 1646 | .phys_id = cxgb3_phys_id, |
1642 | .nway_reset = restart_autoneg, | 1647 | .nway_reset = restart_autoneg, |
1643 | .get_stats_count = get_stats_count, | 1648 | .get_sset_count = get_sset_count, |
1644 | .get_ethtool_stats = get_stats, | 1649 | .get_ethtool_stats = get_stats, |
1645 | .get_regs_len = get_regs_len, | 1650 | .get_regs_len = get_regs_len, |
1646 | .get_regs = get_regs, | 1651 | .get_regs = get_regs, |