Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111349
b: refs/heads/master
c: 3594e13
h: refs/heads/master
i:
  111347: dad8140
v: v3
  • Loading branch information
Ben Hutchings authored and Jeff Garzik committed Sep 3, 2008
1 parent 64e9c3b commit 2af3606
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42cbe2d73c9bc2574f86d63c2b57da93e3b3060d
refs/heads/master: 3594e131b23665b728b4c98daaf0b61b1d4aaa7a
23 changes: 12 additions & 11 deletions trunk/drivers/net/sfc/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,16 +373,18 @@ static int efx_ethtool_fill_self_tests(struct efx_nic *efx,
return n;
}

static int efx_ethtool_get_stats_count(struct net_device *net_dev)
static int efx_ethtool_get_sset_count(struct net_device *net_dev,
int string_set)
{
return EFX_ETHTOOL_NUM_STATS;
}

static int efx_ethtool_self_test_count(struct net_device *net_dev)
{
struct efx_nic *efx = netdev_priv(net_dev);

return efx_ethtool_fill_self_tests(efx, NULL, NULL, NULL);
switch (string_set) {
case ETH_SS_STATS:
return EFX_ETHTOOL_NUM_STATS;
case ETH_SS_TEST:
return efx_ethtool_fill_self_tests(netdev_priv(net_dev),
NULL, NULL, NULL);
default:
return -EINVAL;
}
}

static void efx_ethtool_get_strings(struct net_device *net_dev,
Expand Down Expand Up @@ -719,10 +721,9 @@ struct ethtool_ops efx_ethtool_ops = {
.set_tso = ethtool_op_set_tso,
.get_flags = ethtool_op_get_flags,
.set_flags = ethtool_op_set_flags,
.self_test_count = efx_ethtool_self_test_count,
.get_sset_count = efx_ethtool_get_sset_count,
.self_test = efx_ethtool_self_test,
.get_strings = efx_ethtool_get_strings,
.phys_id = efx_ethtool_phys_id,
.get_stats_count = efx_ethtool_get_stats_count,
.get_ethtool_stats = efx_ethtool_get_stats,
};

0 comments on commit 2af3606

Please sign in to comment.