Commit 81b16ba2f1cc93a1ee1dda48be2ea2d91a0cb72e
Committed by
David S. Miller
1 parent
3600cdadb7
Exists in
master
and in
20 other branches
veth: Kill unused tx_dropped
Followup to commit f82528bc13a (Exclude duplicated checking for iface-up) : We no longer need percpu tx_dropped field. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff
drivers/net/veth.c
... | ... | @@ -30,7 +30,6 @@ |
30 | 30 | u64 rx_bytes; |
31 | 31 | u64 tx_bytes; |
32 | 32 | u64 rx_dropped; |
33 | - u64 tx_dropped; | |
34 | 33 | struct u64_stats_sync syncp; |
35 | 34 | }; |
36 | 35 | |
... | ... | @@ -168,7 +167,7 @@ |
168 | 167 | for_each_possible_cpu(cpu) { |
169 | 168 | struct veth_net_stats *stats = per_cpu_ptr(priv->stats, cpu); |
170 | 169 | u64 rx_packets, rx_bytes, rx_dropped; |
171 | - u64 tx_packets, tx_bytes, tx_dropped; | |
170 | + u64 tx_packets, tx_bytes; | |
172 | 171 | unsigned int start; |
173 | 172 | |
174 | 173 | do { |
175 | 174 | |
... | ... | @@ -178,14 +177,12 @@ |
178 | 177 | rx_bytes = stats->rx_bytes; |
179 | 178 | tx_bytes = stats->tx_bytes; |
180 | 179 | rx_dropped = stats->rx_dropped; |
181 | - tx_dropped = stats->tx_dropped; | |
182 | 180 | } while (u64_stats_fetch_retry_bh(&stats->syncp, start)); |
183 | 181 | tot->rx_packets += rx_packets; |
184 | 182 | tot->tx_packets += tx_packets; |
185 | 183 | tot->rx_bytes += rx_bytes; |
186 | 184 | tot->tx_bytes += tx_bytes; |
187 | 185 | tot->rx_dropped += rx_dropped; |
188 | - tot->tx_dropped += tx_dropped; | |
189 | 186 | } |
190 | 187 | |
191 | 188 | return tot; |