summaryrefslogtreecommitdiffstats
path: root/src/vlib/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/main.h')
-rw-r--r--src/vlib/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h
index f7a4a1c912a..45a521a8667 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -133,7 +133,7 @@ typedef struct vlib_main_t
u64 cpu_time_main_loop_start;
/* Incremented once for each main loop. */
- u32 main_loop_count;
+ volatile u32 main_loop_count;
/* Count of vectors processed this main loop. */
u32 main_loop_vectors_processed;