aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_ethtool.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c
index cda5bf2fc50a..77c66da8738c 100644
--- a/drivers/net/benet/be_ethtool.c
+++ b/drivers/net/benet/be_ethtool.c
@@ -281,9 +281,14 @@ be_get_stat_strings(struct net_device *netdev, uint32_t stringset,
281 } 281 }
282} 282}
283 283
284static int be_get_stats_count(struct net_device *netdev) 284static int be_get_sset_count(struct net_device *netdev, int stringset)
285{ 285{
286 return ETHTOOL_STATS_NUM; 286 switch (stringset) {
287 case ETH_SS_STATS:
288 return ETHTOOL_STATS_NUM;
289 default:
290 return -EINVAL;
291 }
287} 292}
288 293
289static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) 294static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd)
@@ -364,7 +369,7 @@ const struct ethtool_ops be_ethtool_ops = {
364 .get_tso = ethtool_op_get_tso, 369 .get_tso = ethtool_op_get_tso,
365 .set_tso = ethtool_op_set_tso, 370 .set_tso = ethtool_op_set_tso,
366 .get_strings = be_get_stat_strings, 371 .get_strings = be_get_stat_strings,
367 .get_stats_count = be_get_stats_count, 372 .get_sset_count = be_get_sset_count,
368 .get_ethtool_stats = be_get_ethtool_stats, 373 .get_ethtool_stats = be_get_ethtool_stats,
369 .flash_device = be_do_flash, 374 .flash_device = be_do_flash,
370}; 375};