diff options
Diffstat (limited to 'drivers/net/igbvf/ethtool.c')
-rw-r--r-- | drivers/net/igbvf/ethtool.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/drivers/net/igbvf/ethtool.c b/drivers/net/igbvf/ethtool.c index c68265bd0d1a..8afff07ff559 100644 --- a/drivers/net/igbvf/ethtool.c +++ b/drivers/net/igbvf/ethtool.c | |||
@@ -367,16 +367,6 @@ static int igbvf_link_test(struct igbvf_adapter *adapter, u64 *data) | |||
367 | return *data; | 367 | return *data; |
368 | } | 368 | } |
369 | 369 | ||
370 | static int igbvf_get_self_test_count(struct net_device *netdev) | ||
371 | { | ||
372 | return IGBVF_TEST_LEN; | ||
373 | } | ||
374 | |||
375 | static int igbvf_get_stats_count(struct net_device *netdev) | ||
376 | { | ||
377 | return IGBVF_GLOBAL_STATS_LEN; | ||
378 | } | ||
379 | |||
380 | static void igbvf_diag_test(struct net_device *netdev, | 370 | static void igbvf_diag_test(struct net_device *netdev, |
381 | struct ethtool_test *eth_test, u64 *data) | 371 | struct ethtool_test *eth_test, u64 *data) |
382 | { | 372 | { |
@@ -484,6 +474,18 @@ static void igbvf_get_ethtool_stats(struct net_device *netdev, | |||
484 | 474 | ||
485 | } | 475 | } |
486 | 476 | ||
477 | static int igbvf_get_sset_count(struct net_device *dev, int stringset) | ||
478 | { | ||
479 | switch(stringset) { | ||
480 | case ETH_SS_TEST: | ||
481 | return IGBVF_TEST_LEN; | ||
482 | case ETH_SS_STATS: | ||
483 | return IGBVF_GLOBAL_STATS_LEN; | ||
484 | default: | ||
485 | return -EINVAL; | ||
486 | } | ||
487 | } | ||
488 | |||
487 | static void igbvf_get_strings(struct net_device *netdev, u32 stringset, | 489 | static void igbvf_get_strings(struct net_device *netdev, u32 stringset, |
488 | u8 *data) | 490 | u8 *data) |
489 | { | 491 | { |
@@ -532,11 +534,10 @@ static const struct ethtool_ops igbvf_ethtool_ops = { | |||
532 | .get_tso = ethtool_op_get_tso, | 534 | .get_tso = ethtool_op_get_tso, |
533 | .set_tso = igbvf_set_tso, | 535 | .set_tso = igbvf_set_tso, |
534 | .self_test = igbvf_diag_test, | 536 | .self_test = igbvf_diag_test, |
537 | .get_sset_count = igbvf_get_sset_count, | ||
535 | .get_strings = igbvf_get_strings, | 538 | .get_strings = igbvf_get_strings, |
536 | .phys_id = igbvf_phys_id, | 539 | .phys_id = igbvf_phys_id, |
537 | .get_ethtool_stats = igbvf_get_ethtool_stats, | 540 | .get_ethtool_stats = igbvf_get_ethtool_stats, |
538 | .self_test_count = igbvf_get_self_test_count, | ||
539 | .get_stats_count = igbvf_get_stats_count, | ||
540 | .get_coalesce = igbvf_get_coalesce, | 541 | .get_coalesce = igbvf_get_coalesce, |
541 | .set_coalesce = igbvf_set_coalesce, | 542 | .set_coalesce = igbvf_set_coalesce, |
542 | }; | 543 | }; |