diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-03 21:07:32 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:45 -0400 |
commit | b9f2c0440d806e01968c3ed4def930a43be248ad (patch) | |
tree | b8e4668b0a4eab842fc33402e92b15f6c63cbc18 /drivers/net/cxgb3 | |
parent | 753f492093da7a40141bfe083073400f518f4c68 (diff) |
[netdrvr] Stop using legacy hooks ->self_test_count, ->get_stats_count
These have been superceded by the new ->get_sset_count() hook.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
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, |