]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/macvlan.c
net: fix 64 bit counters on 32 bit arches
[net-next-2.6.git] / drivers / net / macvlan.c
index e6d626e78515e3277a24a6c13053360d5189770f..6112f1498940516e61c3df29de0fab8879f46e2c 100644 (file)
@@ -431,12 +431,12 @@ static void macvlan_uninit(struct net_device *dev)
        free_percpu(vlan->rx_stats);
 }
 
-static struct rtnl_link_stats64 *macvlan_dev_get_stats64(struct net_device *dev)
+static struct rtnl_link_stats64 *macvlan_dev_get_stats64(struct net_device *dev,
+                                                        struct rtnl_link_stats64 *stats)
 {
-       struct rtnl_link_stats64 *stats = &dev->stats64;
        struct macvlan_dev *vlan = netdev_priv(dev);
 
-       dev_txq_stats_fold(dev, &dev->stats);
+       dev_txq_stats_fold(dev, (struct net_device_stats *)stats);
 
        if (vlan->rx_stats) {
                struct macvlan_rx_stats *p, accum = {0};