pipeline: fix validate header instruction
Checks
Commit Message
From: Yogesh Jangra <yogesh.jangra@intel.com>
The exported data structure for the header validate instruction did
not populate its struct_id field, which results in segmentation fault.
Fixes: 216bc906d00 ("pipeline: export pipeline instructions to file")
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 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
21/11/2022 15:24, Cristian Dumitrescu:
> From: Yogesh Jangra <yogesh.jangra@intel.com>
>
> The exported data structure for the header validate instruction did
> not populate its struct_id field, which results in segmentation fault.
>
> Fixes: 216bc906d00 ("pipeline: export pipeline instructions to file")
> Cc: stable@dpdk.org
>
> Signed-off-by: Yogesh Jangra <yogesh.jangra@intel.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Applied, thanks.
@@ -11793,10 +11793,12 @@ instr_hdr_validate_export(struct instruction *instr, FILE *f)
"\t\t.type = %s,\n"
"\t\t.valid = {\n"
"\t\t\t.header_id = %u,\n"
+ "\t\t\t.struct_id = %u,\n"
"\t\t},\n"
"\t},\n",
instr_type_to_name(instr),
- instr->valid.header_id);
+ instr->valid.header_id,
+ instr->valid.struct_id);
}
static void