aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/niu.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-11-28 18:52:00 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-28 18:52:00 -0500
commit9fd428761adbd5fbd7e23c312955eec1db8ace7a (patch)
tree93db00382308da5901ea5852141692ba642e9aa4 /drivers/net/niu.c
parent6113b748fb9935399ec2bbca3a3dc82008f6167f (diff)
niu: use net_device_stats nowadays available in net_device
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r--drivers/net/niu.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 2f98f7a4117a..022866dc0915 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -6078,10 +6078,10 @@ static void niu_get_rx_stats(struct niu *np)
6078 dropped += rp->rx_dropped; 6078 dropped += rp->rx_dropped;
6079 errors += rp->rx_errors; 6079 errors += rp->rx_errors;
6080 } 6080 }
6081 np->net_stats.rx_packets = pkts; 6081 np->dev->stats.rx_packets = pkts;
6082 np->net_stats.rx_bytes = bytes; 6082 np->dev->stats.rx_bytes = bytes;
6083 np->net_stats.rx_dropped = dropped; 6083 np->dev->stats.rx_dropped = dropped;
6084 np->net_stats.rx_errors = errors; 6084 np->dev->stats.rx_errors = errors;
6085} 6085}
6086 6086
6087static void niu_get_tx_stats(struct niu *np) 6087static void niu_get_tx_stats(struct niu *np)
@@ -6097,9 +6097,9 @@ static void niu_get_tx_stats(struct niu *np)
6097 bytes += rp->tx_bytes; 6097 bytes += rp->tx_bytes;
6098 errors += rp->tx_errors; 6098 errors += rp->tx_errors;
6099 } 6099 }
6100 np->net_stats.tx_packets = pkts; 6100 np->dev->stats.tx_packets = pkts;
6101 np->net_stats.tx_bytes = bytes; 6101 np->dev->stats.tx_bytes = bytes;
6102 np->net_stats.tx_errors = errors; 6102 np->dev->stats.tx_errors = errors;
6103} 6103}
6104 6104
6105static struct net_device_stats *niu_get_stats(struct net_device *dev) 6105static struct net_device_stats *niu_get_stats(struct net_device *dev)
@@ -6109,7 +6109,7 @@ static struct net_device_stats *niu_get_stats(struct net_device *dev)
6109 niu_get_rx_stats(np); 6109 niu_get_rx_stats(np);
6110 niu_get_tx_stats(np); 6110 niu_get_tx_stats(np);
6111 6111
6112 return &np->net_stats; 6112 return &dev->stats;
6113} 6113}
6114 6114
6115static void niu_load_hash_xmac(struct niu *np, u16 *hash) 6115static void niu_load_hash_xmac(struct niu *np, u16 *hash)