diff options
author | Artem Glazychev <artem.glazychev@xored.com> | 2021-07-29 14:54:59 +0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-08-04 06:59:49 +0000 |
commit | 3edae3519858682cae65ce572480020f13f65079 (patch) | |
tree | d7700a3e4054b4849b864af9d8dc0c60b9c0173a | |
parent | 7dbc8ebe54f4ddb83e337be152e9b8405f52e577 (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
-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, |