]> git.droids-corp.org - dpdk.git/commitdiff
pipeline: fix SWX jump instruction population
authorVenkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com>
Fri, 16 Oct 2020 13:57:47 +0000 (14:57 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 19 Oct 2020 07:20:25 +0000 (09:20 +0200)
This patch fixes jump next instruction pointer population.

Fixes: b3947e25bed4 ("pipeline: introduce SWX jump and return instructions")
Signed-off-by: Venkata Suresh Kumar P <venkata.suresh.kumar.p@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_pipeline/rte_swx_pipeline.c

index d5b4a1cc6aeca6af0c6f3ee8dd68d02b93e06a29..2c9fbf4da7cb489c9f7448728c209c4c82b819a1 100644 (file)
@@ -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;