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/atl1 | |
| 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/atl1')
| -rw-r--r-- | drivers/net/atl1/atl1_ethtool.c | 11 |
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 | ||
| 91 | static int atl1_get_stats_count(struct net_device *netdev) | 91 | static 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 | ||
| 96 | static int atl1_get_settings(struct net_device *netdev, | 101 | static 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 | }; |
