diff options
Diffstat (limited to 'drivers/net/myri10ge')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index f3624517cb0e..5319db9901d8 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -207,7 +207,6 @@ struct myri10ge_priv { | |||
207 | int big_bytes; | 207 | int big_bytes; |
208 | int max_intr_slots; | 208 | int max_intr_slots; |
209 | struct net_device *dev; | 209 | struct net_device *dev; |
210 | struct net_device_stats stats; | ||
211 | spinlock_t stats_lock; | 210 | spinlock_t stats_lock; |
212 | u8 __iomem *sram; | 211 | u8 __iomem *sram; |
213 | int sram_size; | 212 | int sram_size; |
@@ -1832,7 +1831,7 @@ myri10ge_get_ethtool_stats(struct net_device *netdev, | |||
1832 | /* force stats update */ | 1831 | /* force stats update */ |
1833 | (void)myri10ge_get_stats(netdev); | 1832 | (void)myri10ge_get_stats(netdev); |
1834 | for (i = 0; i < MYRI10GE_NET_STATS_LEN; i++) | 1833 | for (i = 0; i < MYRI10GE_NET_STATS_LEN; i++) |
1835 | data[i] = ((unsigned long *)&mgp->stats)[i]; | 1834 | data[i] = ((unsigned long *)&netdev->stats)[i]; |
1836 | 1835 | ||
1837 | data[i++] = (unsigned int)mgp->tx_boundary; | 1836 | data[i++] = (unsigned int)mgp->tx_boundary; |
1838 | data[i++] = (unsigned int)mgp->wc_enabled; | 1837 | data[i++] = (unsigned int)mgp->wc_enabled; |
@@ -3002,7 +3001,7 @@ static struct net_device_stats *myri10ge_get_stats(struct net_device *dev) | |||
3002 | { | 3001 | { |
3003 | struct myri10ge_priv *mgp = netdev_priv(dev); | 3002 | struct myri10ge_priv *mgp = netdev_priv(dev); |
3004 | struct myri10ge_slice_netstats *slice_stats; | 3003 | struct myri10ge_slice_netstats *slice_stats; |
3005 | struct net_device_stats *stats = &mgp->stats; | 3004 | struct net_device_stats *stats = &dev->stats; |
3006 | int i; | 3005 | int i; |
3007 | 3006 | ||
3008 | spin_lock(&mgp->stats_lock); | 3007 | spin_lock(&mgp->stats_lock); |