From 1e17748b0a281a321940d6fa44ef91ab3a3bf895 Mon Sep 17 00:00:00 2001 From: Venkata Suresh Kumar P Date: Fri, 16 Oct 2020 14:57:47 +0100 Subject: [PATCH] pipeline: fix SWX jump instruction population This patch fixes jump next instruction pointer population. Fixes: b3947e25bed4 ("pipeline: introduce SWX jump and return instructions") Signed-off-by: Venkata Suresh Kumar P Acked-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pipeline/rte_swx_pipeline.c b/lib/librte_pipeline/rte_swx_pipeline.c index d5b4a1cc6a..2c9fbf4da7 100644 --- a/lib/librte_pipeline/rte_swx_pipeline.c +++ b/lib/librte_pipeline/rte_swx_pipeline.c @@ -5647,7 +5647,7 @@ instr_jmp_resolve(struct instruction *instructions, data->jmp_label); CHECK(found, EINVAL); - instr->jmp.ip = &instr[found - instruction_data]; + instr->jmp.ip = &instructions[found - instruction_data]; } return 0; -- 2.20.1