aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/myri10ge/myri10ge.c
diff options
context:
space:
mode:
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