diff options
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index e6d626e78515..6112f1498940 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -431,12 +431,12 @@ static void macvlan_uninit(struct net_device *dev) | |||
431 | free_percpu(vlan->rx_stats); | 431 | free_percpu(vlan->rx_stats); |
432 | } | 432 | } |
433 | 433 | ||
434 | static struct rtnl_link_stats64 *macvlan_dev_get_stats64(struct net_device *dev) | 434 | static struct rtnl_link_stats64 *macvlan_dev_get_stats64(struct net_device *dev, |
435 | struct rtnl_link_stats64 *stats) | ||
435 | { | 436 | { |
436 | struct rtnl_link_stats64 *stats = &dev->stats64; | ||
437 | struct macvlan_dev *vlan = netdev_priv(dev); | 437 | struct macvlan_dev *vlan = netdev_priv(dev); |
438 | 438 | ||
439 | dev_txq_stats_fold(dev, &dev->stats); | 439 | dev_txq_stats_fold(dev, (struct net_device_stats *)stats); |
440 | 440 | ||
441 | if (vlan->rx_stats) { | 441 | if (vlan->rx_stats) { |
442 | struct macvlan_rx_stats *p, accum = {0}; | 442 | struct macvlan_rx_stats *p, accum = {0}; |