Skip to content

Commit 81b16ba

Browse files
Eric Dumazetdavem330
authored andcommitted
veth: Kill unused tx_dropped
Followup to commit f82528b (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>
1 parent 3600cda commit 81b16ba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/net/veth.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ struct veth_net_stats {
3030
u64 rx_bytes;
3131
u64 tx_bytes;
3232
u64 rx_dropped;
33-
u64 tx_dropped;
3433
struct u64_stats_sync syncp;
3534
};
3635

@@ -168,7 +167,7 @@ static struct rtnl_link_stats64 *veth_get_stats64(struct net_device *dev,
168167
for_each_possible_cpu(cpu) {
169168
struct veth_net_stats *stats = per_cpu_ptr(priv->stats, cpu);
170169
u64 rx_packets, rx_bytes, rx_dropped;
171-
u64 tx_packets, tx_bytes, tx_dropped;
170+
u64 tx_packets, tx_bytes;
172171
unsigned int start;
173172

174173
do {
@@ -178,14 +177,12 @@ static struct rtnl_link_stats64 *veth_get_stats64(struct net_device *dev,
178177
rx_bytes = stats->rx_bytes;
179178
tx_bytes = stats->tx_bytes;
180179
rx_dropped = stats->rx_dropped;
181-
tx_dropped = stats->tx_dropped;
182180
} while (u64_stats_fetch_retry_bh(&stats->syncp, start));
183181
tot->rx_packets += rx_packets;
184182
tot->tx_packets += tx_packets;
185183
tot->rx_bytes += rx_bytes;
186184
tot->tx_bytes += tx_bytes;
187185
tot->rx_dropped += rx_dropped;
188-
tot->tx_dropped += tx_dropped;
189186
}
190187

191188
return tot;

0 commit comments

Comments
 (0)