Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Dumazet and committed by
David S. Miller
81b16ba2 3600cdad

+1 -4
+1 -4
drivers/net/veth.c
··· 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 ··· 167 168 for_each_possible_cpu(cpu) { 168 169 struct veth_net_stats *stats = per_cpu_ptr(priv->stats, cpu); 169 170 u64 rx_packets, rx_bytes, rx_dropped; 170 - u64 tx_packets, tx_bytes, tx_dropped; 171 + u64 tx_packets, tx_bytes; 171 172 unsigned int start; 172 173 173 174 do { ··· 177 178 rx_bytes = stats->rx_bytes; 178 179 tx_bytes = stats->tx_bytes; 179 180 rx_dropped = stats->rx_dropped; 180 - tx_dropped = stats->tx_dropped; 181 181 } while (u64_stats_fetch_retry_bh(&stats->syncp, start)); 182 182 tot->rx_packets += rx_packets; 183 183 tot->tx_packets += tx_packets; 184 184 tot->rx_bytes += rx_bytes; 185 185 tot->tx_bytes += tx_bytes; 186 186 tot->rx_dropped += rx_dropped; 187 - tot->tx_dropped += tx_dropped; 188 187 } 189 188 190 189 return tot;