Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171494
b: refs/heads/master
c: e576b9e
h: refs/heads/master
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Nov 11, 2009
1 parent d162a2f commit 9f76f84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1e9016da6d0f16551d90085758ae45d26826118
refs/heads/master: e576b9ef41c2c1b13e0c123b6e9d0589723c68bf
8 changes: 5 additions & 3 deletions trunk/arch/s390/appldata/appldata_net_sum.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ static void appldata_get_net_sum_data(void *data)
rx_dropped = 0;
tx_dropped = 0;
collisions = 0;
read_lock(&dev_base_lock);
for_each_netdev(&init_net, dev) {

rcu_read_lock();
for_each_netdev_rcu(&init_net, dev) {
const struct net_device_stats *stats = dev_get_stats(dev);

rx_packets += stats->rx_packets;
Expand All @@ -98,7 +99,8 @@ static void appldata_get_net_sum_data(void *data)
collisions += stats->collisions;
i++;
}
read_unlock(&dev_base_lock);
rcu_read_unlock();

net_data->nr_interfaces = i;
net_data->rx_packets = rx_packets;
net_data->tx_packets = tx_packets;
Expand Down

0 comments on commit 9f76f84

Please sign in to comment.