aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/memif/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c
index 102d93da674..c7ad9740b02 100644
--- a/src/plugins/memif/node.c
+++ b/src/plugins/memif/node.c
@@ -809,7 +809,7 @@ refill:
d[6].offset = (u64) vlib_get_buffer (vm, bi[6])->data - offset;
d[7].offset = (u64) vlib_get_buffer (vm, bi[7])->data - offset;
- slot += 8;
+ slot = (slot + 8) & mask;
n_alloc -= 8;
continue;