diff options
Diffstat (limited to 'src/plugins/memif')
-rw-r--r-- | src/plugins/memif/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c index 8bb3758c5fd..794e6b713bf 100644 --- a/src/plugins/memif/node.c +++ b/src/plugins/memif/node.c @@ -774,7 +774,7 @@ refill: n_alloc = vlib_buffer_alloc_to_ring_from_pool ( vm, mq->buffers, slot, ring_size, n_slots, mq->buffer_pool_index); dt->region = mq->buffer_pool_index + 1; - offset = (u64) mif->regions[dt->region].shm + start_offset; + offset = (u64) mif->regions[dt->region].shm - start_offset; if (PREDICT_FALSE (n_alloc != n_slots)) vlib_error_count (vm, node->node_index, |