memif: fix offset

signs were changed here when calculating the offset:
d78ba5aa01

Type: fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Change-Id: I62b7a409caaf478e40efbdd6000922dcc7e92860
This commit is contained in:
Artem Glazychev
2021-07-29 14:54:59 +07:00
committed by Damjan Marion
parent 7dbc8ebe54
commit 3edae35198

View File

@ -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,