aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/myri10ge/myri10ge.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-10-03 21:07:32 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:45 -0400
commitb9f2c0440d806e01968c3ed4def930a43be248ad (patch)
treeb8e4668b0a4eab842fc33402e92b15f6c63cbc18 /drivers/net/myri10ge/myri10ge.c
parent753f492093da7a40141bfe083073400f518f4c68 (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/myri10ge/myri10ge.c')
-rw-r--r--drivers/net/myri10ge/myri10ge.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index 38b03f538e95..e8afa101433e 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -1418,9 +1418,14 @@ myri10ge_get_strings(struct net_device *netdev, u32 stringset, u8 * data)
1418 } 1418 }
1419} 1419}
1420 1420
1421static int myri10ge_get_stats_count(struct net_device *netdev) 1421static int myri10ge_get_sset_count(struct net_device *netdev, int sset)
1422{ 1422{
1423 return MYRI10GE_STATS_LEN; 1423 switch (sset) {
1424 case ETH_SS_STATS:
1425 return MYRI10GE_STATS_LEN;
1426 default:
1427 return -EOPNOTSUPP;
1428 }
1424} 1429}
1425 1430
1426static void 1431static void
@@ -1504,7 +1509,7 @@ static const struct ethtool_ops myri10ge_ethtool_ops = {
1504 .set_tso = ethtool_op_set_tso, 1509 .set_tso = ethtool_op_set_tso,
1505 .get_link = ethtool_op_get_link, 1510 .get_link = ethtool_op_get_link,
1506 .get_strings = myri10ge_get_strings, 1511 .get_strings = myri10ge_get_strings,
1507 .get_stats_count = myri10ge_get_stats_count, 1512 .get_sset_count = myri10ge_get_sset_count,
1508 .get_ethtool_stats = myri10ge_get_ethtool_stats, 1513 .get_ethtool_stats = myri10ge_get_ethtool_stats,
1509 .set_msglevel = myri10ge_set_msglevel, 1514 .set_msglevel = myri10ge_set_msglevel,
1510 .get_msglevel = myri10ge_get_msglevel 1515 .get_msglevel = myri10ge_get_msglevel