From: Venkata Suresh Kumar P <[email protected]>
This patch fixes jump next instruction pointer
population
Fixes: b3947e25bed4 ("pipeline: introduce SWX jump and return instructions")
Cc: [email protected]
Signed-off-by: Venkata Suresh Kumar P <[email protected]>
Acked-by: Cristian Dumitrescu <[email protected]>
---
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 d5b4a1c..2c9fbf4 100644
--- a/lib/librte_pipeline/rte_swx_pipeline.c
+++ b/lib/librte_pipeline/rte_swx_pipeline.c
@@ -5647,7 +5647,7 @@ struct_field_parse(struct rte_swx_pipeline *p,
data->jmp_label);
CHECK(found, EINVAL);
- instr->jmp.ip = &instr[found - instruction_data];
+ instr->jmp.ip = &instructions[found - instruction_data];
}
return 0;
--
1.8.3.1