aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/appldata/appldata_net_sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/appldata/appldata_net_sum.c')
-rw-r--r--arch/s390/appldata/appldata_net_sum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/appldata/appldata_net_sum.c b/arch/s390/appldata/appldata_net_sum.c
index 9a9586f4103f..5da7c562a90b 100644
--- a/arch/s390/appldata/appldata_net_sum.c
+++ b/arch/s390/appldata/appldata_net_sum.c
@@ -85,8 +85,10 @@ static void appldata_get_net_sum_data(void *data)
85 85
86 rcu_read_lock(); 86 rcu_read_lock();
87 for_each_netdev_rcu(&init_net, dev) { 87 for_each_netdev_rcu(&init_net, dev) {
88 const struct net_device_stats *stats = dev_get_stats(dev); 88 const struct rtnl_link_stats64 *stats;
89 struct rtnl_link_stats64 temp;
89 90
91 stats = dev_get_stats(dev, &temp);
90 rx_packets += stats->rx_packets; 92 rx_packets += stats->rx_packets;
91 tx_packets += stats->tx_packets; 93 tx_packets += stats->tx_packets;
92 rx_bytes += stats->rx_bytes; 94 rx_bytes += stats->rx_bytes;