aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/memif
diff options
context:
space:
mode:
authorArtem Glazychev <artem.glazychev@xored.com>2021-07-29 14:54:59 +0700
committerDamjan Marion <dmarion@me.com>2021-08-04 06:59:49 +0000
commit3edae3519858682cae65ce572480020f13f65079 (patch)
treed7700a3e4054b4849b864af9d8dc0c60b9c0173a /src/plugins/memif
parent7dbc8ebe54f4ddb83e337be152e9b8405f52e577 (diff)
memif: fix offset
signs were changed here when calculating the offset: d78ba5aa01ff1415bff0b06069ce21e0a78df89c Type: fix Signed-off-by: Artem Glazychev <artem.glazychev@xored.com> Change-Id: I62b7a409caaf478e40efbdd6000922dcc7e92860
Diffstat (limited to 'src/plugins/memif')
-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 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,