aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-06-08 03:21:12 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-12 18:51:23 -0400
commit4472702e6575809c2d232efc09ac25caf66b395d (patch)
tree77c28d9c159592c978472d92ae31dc154aee7d48 /drivers/net/sfc
parentbe1f3c2c027cc5ad735df6a45a542ed1db7ec48b (diff)
sfc: Implement 64-bit net device statistics on all architectures
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/efx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 26b0cc21920..8ad476a19d9 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1492,11 +1492,11 @@ static int efx_net_stop(struct net_device *net_dev)
1492} 1492}
1493 1493
1494/* Context: process, dev_base_lock or RTNL held, non-blocking. */ 1494/* Context: process, dev_base_lock or RTNL held, non-blocking. */
1495static struct net_device_stats *efx_net_stats(struct net_device *net_dev) 1495static struct rtnl_link_stats64 *efx_net_stats(struct net_device *net_dev)
1496{ 1496{
1497 struct efx_nic *efx = netdev_priv(net_dev); 1497 struct efx_nic *efx = netdev_priv(net_dev);
1498 struct efx_mac_stats *mac_stats = &efx->mac_stats; 1498 struct efx_mac_stats *mac_stats = &efx->mac_stats;
1499 struct net_device_stats *stats = &net_dev->stats; 1499 struct rtnl_link_stats64 *stats = &net_dev->stats64;
1500 1500
1501 spin_lock_bh(&efx->stats_lock); 1501 spin_lock_bh(&efx->stats_lock);
1502 efx->type->update_stats(efx); 1502 efx->type->update_stats(efx);
@@ -1630,7 +1630,7 @@ static void efx_set_multicast_list(struct net_device *net_dev)
1630static const struct net_device_ops efx_netdev_ops = { 1630static const struct net_device_ops efx_netdev_ops = {
1631 .ndo_open = efx_net_open, 1631 .ndo_open = efx_net_open,
1632 .ndo_stop = efx_net_stop, 1632 .ndo_stop = efx_net_stop,
1633 .ndo_get_stats = efx_net_stats, 1633 .ndo_get_stats64 = efx_net_stats,
1634 .ndo_tx_timeout = efx_watchdog, 1634 .ndo_tx_timeout = efx_watchdog,
1635 .ndo_start_xmit = efx_hard_start_xmit, 1635 .ndo_start_xmit = efx_hard_start_xmit,
1636 .ndo_validate_addr = eth_validate_addr, 1636 .ndo_validate_addr = eth_validate_addr,