Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177161
b: refs/heads/master
c: a3f92ee
h: refs/heads/master
i:
  177159: 0539200
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Dec 16, 2009
1 parent b6e3661 commit 3782d35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 1a35ca80c1db7279c3c0655063f6d3490e399b17
refs/heads/master: a3f92eea04101d9a8e14d50f8048cc5b7bca07a8
12 changes: 9 additions & 3 deletions trunk/drivers/net/bcm63xx_enet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,9 +1245,15 @@ static void bcm_enet_get_drvinfo(struct net_device *netdev,
drvinfo->n_stats = BCM_ENET_STATS_LEN;
}

static int bcm_enet_get_stats_count(struct net_device *netdev)
static int bcm_enet_get_sset_count(struct net_device *netdev,
int string_set)
{
return BCM_ENET_STATS_LEN;
switch (string_set) {
case ETH_SS_STATS:
return BCM_ENET_STATS_LEN;
default:
return -EINVAL;
}
}

static void bcm_enet_get_strings(struct net_device *netdev,
Expand Down Expand Up @@ -1473,7 +1479,7 @@ static int bcm_enet_set_pauseparam(struct net_device *dev,

static struct ethtool_ops bcm_enet_ethtool_ops = {
.get_strings = bcm_enet_get_strings,
.get_stats_count = bcm_enet_get_stats_count,
.get_sset_count = bcm_enet_get_sset_count,
.get_ethtool_stats = bcm_enet_get_ethtool_stats,
.get_settings = bcm_enet_get_settings,
.set_settings = bcm_enet_set_settings,
Expand Down

0 comments on commit 3782d35

Please sign in to comment.