diff options
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/appldata/appldata_net_sum.c | 8 | ||||
-rw-r--r-- | arch/s390/include/asm/socket.h | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/arch/s390/appldata/appldata_net_sum.c b/arch/s390/appldata/appldata_net_sum.c index fa741f84c5b9..4ce7fa95880f 100644 --- a/arch/s390/appldata/appldata_net_sum.c +++ b/arch/s390/appldata/appldata_net_sum.c | |||
@@ -83,8 +83,9 @@ static void appldata_get_net_sum_data(void *data) | |||
83 | rx_dropped = 0; | 83 | rx_dropped = 0; |
84 | tx_dropped = 0; | 84 | tx_dropped = 0; |
85 | collisions = 0; | 85 | collisions = 0; |
86 | read_lock(&dev_base_lock); | 86 | |
87 | for_each_netdev(&init_net, dev) { | 87 | rcu_read_lock(); |
88 | for_each_netdev_rcu(&init_net, dev) { | ||
88 | const struct net_device_stats *stats = dev_get_stats(dev); | 89 | const struct net_device_stats *stats = dev_get_stats(dev); |
89 | 90 | ||
90 | rx_packets += stats->rx_packets; | 91 | rx_packets += stats->rx_packets; |
@@ -98,7 +99,8 @@ static void appldata_get_net_sum_data(void *data) | |||
98 | collisions += stats->collisions; | 99 | collisions += stats->collisions; |
99 | i++; | 100 | i++; |
100 | } | 101 | } |
101 | read_unlock(&dev_base_lock); | 102 | rcu_read_unlock(); |
103 | |||
102 | net_data->nr_interfaces = i; | 104 | net_data->nr_interfaces = i; |
103 | net_data->rx_packets = rx_packets; | 105 | net_data->rx_packets = rx_packets; |
104 | net_data->tx_packets = tx_packets; | 106 | net_data->tx_packets = tx_packets; |
diff --git a/arch/s390/include/asm/socket.h b/arch/s390/include/asm/socket.h index e42df89a0b85..fdff1e995c73 100644 --- a/arch/s390/include/asm/socket.h +++ b/arch/s390/include/asm/socket.h | |||
@@ -68,4 +68,6 @@ | |||
68 | #define SO_PROTOCOL 38 | 68 | #define SO_PROTOCOL 38 |
69 | #define SO_DOMAIN 39 | 69 | #define SO_DOMAIN 39 |
70 | 70 | ||
71 | #define SO_RXQ_OVFL 40 | ||
72 | |||
71 | #endif /* _ASM_SOCKET_H */ | 73 | #endif /* _ASM_SOCKET_H */ |