From 94c7236ec308ba52d0365aff4236425136c8cdb6 Mon Sep 17 00:00:00 2001 From: Tianyu Li Date: Wed, 19 May 2021 14:45:58 +0800 Subject: memif: fix input node buffer prefetch Prefetch should be the next group of buffers instead of current buffers Type: fix Signed-off-by: Tianyu Li Change-Id: If13967e27f74c10856ae48892420d7ade6f0c92c --- src/plugins/memif/node.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c index 53039d3d0b6..102d93da674 100644 --- a/src/plugins/memif/node.c +++ b/src/plugins/memif/node.c @@ -365,10 +365,10 @@ memif_device_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, while (n_from >= 8) { - b0 = vlib_get_buffer (vm, ptd->buffers[po[0].first_buffer_vec_index]); - b1 = vlib_get_buffer (vm, ptd->buffers[po[1].first_buffer_vec_index]); - b2 = vlib_get_buffer (vm, ptd->buffers[po[2].first_buffer_vec_index]); - b3 = vlib_get_buffer (vm, ptd->buffers[po[3].first_buffer_vec_index]); + b0 = vlib_get_buffer (vm, ptd->buffers[po[4].first_buffer_vec_index]); + b1 = vlib_get_buffer (vm, ptd->buffers[po[5].first_buffer_vec_index]); + b2 = vlib_get_buffer (vm, ptd->buffers[po[6].first_buffer_vec_index]); + b3 = vlib_get_buffer (vm, ptd->buffers[po[7].first_buffer_vec_index]); vlib_prefetch_buffer_header (b0, STORE); vlib_prefetch_buffer_header (b1, STORE); -- cgit 1.2.3-korg