aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorTianyu Li <tianyu.li@arm.com>2021-05-19 14:45:58 +0800
committerDave Wallace <dwallacelf@gmail.com>2021-05-20 20:31:21 +0000
commit94c7236ec308ba52d0365aff4236425136c8cdb6 (patch)
tree2d77b4e3d860deba306962ae3db645726b1cd9a7 /src/plugins
parentae8d332699685a8527fe42eb9be0bca4d639d5c3 (diff)
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 <tianyu.li@arm.com> Change-Id: If13967e27f74c10856ae48892420d7ade6f0c92c
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/memif/node.c8
1 files changed, 4 insertions, 4 deletions
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);