aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/gen_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/gen_stats.c')
-rw-r--r--net/core/gen_stats.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/gen_stats.c b/net/core/gen_stats.c
index 9bf1b9ad1780..ac679f74ba47 100644
--- a/net/core/gen_stats.c
+++ b/net/core/gen_stats.c
@@ -291,7 +291,6 @@ __gnet_stats_copy_queue_cpu(struct gnet_stats_queue *qstats,
291 for_each_possible_cpu(i) { 291 for_each_possible_cpu(i) {
292 const struct gnet_stats_queue *qcpu = per_cpu_ptr(q, i); 292 const struct gnet_stats_queue *qcpu = per_cpu_ptr(q, i);
293 293
294 qstats->qlen = 0;
295 qstats->backlog += qcpu->backlog; 294 qstats->backlog += qcpu->backlog;
296 qstats->drops += qcpu->drops; 295 qstats->drops += qcpu->drops;
297 qstats->requeues += qcpu->requeues; 296 qstats->requeues += qcpu->requeues;
@@ -307,7 +306,6 @@ void __gnet_stats_copy_queue(struct gnet_stats_queue *qstats,
307 if (cpu) { 306 if (cpu) {
308 __gnet_stats_copy_queue_cpu(qstats, cpu); 307 __gnet_stats_copy_queue_cpu(qstats, cpu);
309 } else { 308 } else {
310 qstats->qlen = q->qlen;
311 qstats->backlog = q->backlog; 309 qstats->backlog = q->backlog;
312 qstats->drops = q->drops; 310 qstats->drops = q->drops;
313 qstats->requeues = q->requeues; 311 qstats->requeues = q->requeues;