aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vlib/buffer.c')
-rw-r--r--src/vlib/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/buffer.c b/src/vlib/buffer.c
index a704efb40f4..785fa9b8aac 100644
--- a/src/vlib/buffer.c
+++ b/src/vlib/buffer.c
@@ -910,7 +910,7 @@ vlib_buffer_pool_create (vlib_main_t * vm, vlib_physmem_region_index_t pri,
p->log2_page_size = pr->log2_page_size;
p->buffer_size = buffer_size;
- p->buffers_per_page = (1 << pr->log2_page_size) / p->buffer_size;
+ p->buffers_per_page = (1ull << pr->log2_page_size) / p->buffer_size;
p->n_elts = p->buffers_per_page * pr->n_pages;
p->n_used = 0;
clib_spinlock_init (&p->lock);