diff options
-rw-r--r-- | drivers/net/veth.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 19e0b0c72f49..7f78db7bd68d 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c | |||
@@ -30,7 +30,6 @@ struct veth_net_stats { | |||
30 | u64 rx_bytes; | 30 | u64 rx_bytes; |
31 | u64 tx_bytes; | 31 | u64 tx_bytes; |
32 | u64 rx_dropped; | 32 | u64 rx_dropped; |
33 | u64 tx_dropped; | ||
34 | struct u64_stats_sync syncp; | 33 | struct u64_stats_sync syncp; |
35 | }; | 34 | }; |
36 | 35 | ||
@@ -168,7 +167,7 @@ static struct rtnl_link_stats64 *veth_get_stats64(struct net_device *dev, | |||
168 | for_each_possible_cpu(cpu) { | 167 | for_each_possible_cpu(cpu) { |
169 | struct veth_net_stats *stats = per_cpu_ptr(priv->stats, cpu); | 168 | struct veth_net_stats *stats = per_cpu_ptr(priv->stats, cpu); |
170 | u64 rx_packets, rx_bytes, rx_dropped; | 169 | u64 rx_packets, rx_bytes, rx_dropped; |
171 | u64 tx_packets, tx_bytes, tx_dropped; | 170 | u64 tx_packets, tx_bytes; |
172 | unsigned int start; | 171 | unsigned int start; |
173 | 172 | ||
174 | do { | 173 | do { |
@@ -178,14 +177,12 @@ static struct rtnl_link_stats64 *veth_get_stats64(struct net_device *dev, | |||
178 | rx_bytes = stats->rx_bytes; | 177 | rx_bytes = stats->rx_bytes; |
179 | tx_bytes = stats->tx_bytes; | 178 | tx_bytes = stats->tx_bytes; |
180 | rx_dropped = stats->rx_dropped; | 179 | rx_dropped = stats->rx_dropped; |
181 | tx_dropped = stats->tx_dropped; | ||
182 | } while (u64_stats_fetch_retry_bh(&stats->syncp, start)); | 180 | } while (u64_stats_fetch_retry_bh(&stats->syncp, start)); |
183 | tot->rx_packets += rx_packets; | 181 | tot->rx_packets += rx_packets; |
184 | tot->tx_packets += tx_packets; | 182 | tot->tx_packets += tx_packets; |
185 | tot->rx_bytes += rx_bytes; | 183 | tot->rx_bytes += rx_bytes; |
186 | tot->tx_bytes += tx_bytes; | 184 | tot->tx_bytes += tx_bytes; |
187 | tot->rx_dropped += rx_dropped; | 185 | tot->rx_dropped += rx_dropped; |
188 | tot->tx_dropped += tx_dropped; | ||
189 | } | 186 | } |
190 | 187 | ||
191 | return tot; | 188 | return tot; |