aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/core/gen_stats.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/gen_stats.c b/net/core/gen_stats.c
index 14681b97a4f3..0c08062d1796 100644
--- a/net/core/gen_stats.c
+++ b/net/core/gen_stats.c
@@ -106,8 +106,8 @@ __gnet_stats_copy_basic_cpu(struct gnet_stats_basic_packed *bstats,
106 for_each_possible_cpu(i) { 106 for_each_possible_cpu(i) {
107 struct gnet_stats_basic_cpu *bcpu = per_cpu_ptr(cpu, i); 107 struct gnet_stats_basic_cpu *bcpu = per_cpu_ptr(cpu, i);
108 unsigned int start; 108 unsigned int start;
109 __u64 bytes; 109 u64 bytes;
110 __u32 packets; 110 u32 packets;
111 111
112 do { 112 do {
113 start = u64_stats_fetch_begin_irq(&bcpu->syncp); 113 start = u64_stats_fetch_begin_irq(&bcpu->syncp);
@@ -115,8 +115,8 @@ __gnet_stats_copy_basic_cpu(struct gnet_stats_basic_packed *bstats,
115 packets = bcpu->bstats.packets; 115 packets = bcpu->bstats.packets;
116 } while (u64_stats_fetch_retry_irq(&bcpu->syncp, start)); 116 } while (u64_stats_fetch_retry_irq(&bcpu->syncp, start));
117 117
118 bstats->bytes += bcpu->bstats.bytes; 118 bstats->bytes += bytes;
119 bstats->packets += bcpu->bstats.packets; 119 bstats->packets += packets;
120 } 120 }
121} 121}
122 122