pipeline: fix instruction label check
authorYogesh Jangra <yogesh.jangra@intel.com>
Thu, 21 Oct 2021 03:23:32 +0000 (23:23 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 25 Oct 2021 12:06:02 +0000 (14:06 +0200)
commit55095ccb7fdda113186e3191760a5cf0b0e8d28d
treedc2cc15e54f0b6db54bd8f7a9d3069df84d6793d
parente6cb7e70dfc58f21739fc67d91d1af49266e0b71
pipeline: fix instruction label check

The instruction_data array was incorrectly indexed, which resulted in
the array index getting out of bounds and sometimes segfault.

Fixes: a1711f (“pipeline: add SWX Rx and extract instructions“)
Cc: stable@dpdk.org
Signed-off-by: Yogesh Jangra <yogesh.jangra@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/pipeline/rte_swx_pipeline.c