From: Churchill Khangar Date: Fri, 16 Oct 2020 13:57:57 +0000 (+0100) Subject: pipeline: fix SWX jump instruction parsing X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ccbbb7f23fe3c88e19d1124ec48f0d636272eefb;p=dpdk.git pipeline: fix SWX jump instruction parsing This patch fixes the jump if not valid header instruction parsing. Fixes: b3947e25bed4 ("pipeline: introduce SWX jump and return instructions") Signed-off-by: Churchill Khangar Acked-by: Cristian Dumitrescu --- diff --git a/lib/librte_pipeline/rte_swx_pipeline.c b/lib/librte_pipeline/rte_swx_pipeline.c index 2c9fbf4da7..9d64611018 100644 --- a/lib/librte_pipeline/rte_swx_pipeline.c +++ b/lib/librte_pipeline/rte_swx_pipeline.c @@ -4658,7 +4658,7 @@ instr_jmp_invalid_translate(struct rte_swx_pipeline *p, { struct header *h; - CHECK(n_tokens == 2, EINVAL); + CHECK(n_tokens == 3, EINVAL); strcpy(data->jmp_label, tokens[1]);